[llvm] [Bolt] Teach bolt about no-return functions (PR #115616)
Anatoly Trosinenko via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 18 06:52:08 PDT 2025
================
@@ -308,6 +308,20 @@ Expected<std::unique_ptr<BinaryContext>> BinaryContext::createBinaryContext(
return std::move(BC);
}
+bool BinaryContext::hasPathToNoReturn(BinaryFunction *Func) {
+ // Dummy way to mark no-return functions.
+ // FIXME: Find a better way.
+ if (std::string FuncName = Func->getPrintName();
----------------
atrosinenko wrote:
I wonder if `getPrintName()` is the right accessor to call - maybe `getOneName()` (or even asking `hasName(...)`) is more appropriate?
https://github.com/llvm/llvm-project/pull/115616
More information about the llvm-commits
mailing list