[llvm] [TLI] Add support for inferring attr `cold`/`noreturn` on `std::terminate` and `__cxa_throw` (PR #101622)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 00:34:15 PDT 2024
================
@@ -491,6 +491,16 @@ TLI_DEFINE_ENUM_INTERNAL(Exit)
TLI_DEFINE_STRING_INTERNAL("_Exit")
TLI_DEFINE_SIG_INTERNAL(Void, Int)
+/// void std::terminate(void);
----------------
dtcxzyw wrote:
```suggestion
/// void std::terminate();
```
`(void)` looks like C-style declaration.
https://github.com/llvm/llvm-project/pull/101622
More information about the llvm-commits
mailing list