llvm.org GIT mirror llvm / 0ca9b79
[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 Hal Finkel 5 years ago
1 changed file(s) with 1 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
240240 // entry.
241241 const MCExpr *CSOffsetExpr = MCBinaryExpr::CreateSub(
242242 MCSymbolRefExpr::Create(MILabel, OutContext),
243 MCSymbolRefExpr::Create(AP.CurrentFnSym, OutContext),
243 MCSymbolRefExpr::Create(AP.CurrentFnSymForSize, OutContext),
244244 OutContext);
246246 CSInfos.emplace_back(CSOffsetExpr, ID, std::move(Locations),