[clang] Add support for builtin_verbose_trap (PR #79230)
Akira Hatanaka via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 22 17:55:31 PDT 2024
================
@@ -3424,6 +3445,26 @@ llvm::DIMacroFile *CGDebugInfo::CreateTempMacroFile(llvm::DIMacroFile *Parent,
return DBuilder.createTempMacroFile(Parent, Line, FName);
}
+llvm::DILocation *CGDebugInfo::CreateTrapFailureMessageFor(
----------------
ahatanak wrote:
@dwblaikie 's comment:
https://github.com/llvm/llvm-project/pull/79230#discussion_r1575391593
So the name of the subprogram would be something like `__builtin_trap: identifier123 : Argument_must_not_be_null`?
@Michael137 @delcypher is there a reason we cannot use the same prefix (`__builtin_trap`, for example)? Does lldb need clang to use different prefixes for `-fbounds-safety` and `builtin_verbose_trap`?
https://github.com/llvm/llvm-project/pull/79230
More information about the cfe-commits
mailing list