================ @@ -3424,6 +3443,26 @@ llvm::DIMacroFile *CGDebugInfo::CreateTempMacroFile(llvm::DIMacroFile *Parent, return DBuilder.createTempMacroFile(Parent, Line, FName); } +llvm::DILocation * +CGDebugInfo::CreateTrapFailureMessageFor(llvm::DebugLoc TrapLocation, + StringRef FailureMsg) { + // Create a debug location from `TrapLocation` that adds an artificial inline + // frame. + const char *Prefix = "__llvm_verbose_trap"; ---------------- delcypher wrote:
Why isn't the `Prefix` a parameter? This prevent re-use for things like `-fbounds-safety` https://github.com/llvm/llvm-project/pull/79230 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits