mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
[StackMaps] Use CurrentFnSymForSize
When computing the call-site offset, use AP.CurrentFnSymForSize instead of AP.CurrentFnSym. There should be no change for other targets, but this is necessary for generating valid expressions for PPC64/ELF. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225807 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
b41c7e59a7
commit
0ca9b79771
@ -241,7 +241,7 @@ void StackMaps::recordStackMapOpers(const MachineInstr &MI, uint64_t ID,
|
||||
// entry.
|
||||
const MCExpr *CSOffsetExpr = MCBinaryExpr::CreateSub(
|
||||
MCSymbolRefExpr::Create(MILabel, OutContext),
|
||||
MCSymbolRefExpr::Create(AP.CurrentFnSym, OutContext),
|
||||
MCSymbolRefExpr::Create(AP.CurrentFnSymForSize, OutContext),
|
||||
OutContext);
|
||||
|
||||
CSInfos.emplace_back(CSOffsetExpr, ID, std::move(Locations),
|
||||
|
Loading…
Reference in New Issue
Block a user