[llvm] [BOLT] Correctly handle entry point at FDE boundaries (PR #176173)
Paschalis Mpeis via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 27 10:13:57 PST 2026
================
@@ -3800,7 +3801,7 @@ MCSymbol *BinaryFunction::addEntryPointAtOffset(uint64_t Offset) {
const uint64_t EntryPointAddress = getAddress() + Offset;
assert(!isInConstantIsland(EntryPointAddress) &&
"cannot add entry point that points to constant data");
- MCSymbol *LocalSymbol = getOrCreateLocalLabel(EntryPointAddress);
+ MCSymbol *LocalSymbol = getOrCreateLocalLabel(EntryPointAddress, true);
----------------
paschalis-mpeis wrote:
nit:
```suggestion
MCSymbol *LocalSymbol = getOrCreateLocalLabel(EntryPointAddress, /* IsEntryPoint */ true);
```
https://github.com/llvm/llvm-project/pull/176173
More information about the llvm-commits
mailing list