summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/StackMaps.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2015-01-13 17:48:07 +0000
committerHal Finkel <hfinkel@anl.gov>2015-01-13 17:48:07 +0000
commitc4ee2c5188872b5a7a4e0d6379141f65cc7356bd (patch)
treefe7c3d56e1ace6711eb82ecf18c79f20ff91152e /llvm/lib/CodeGen/StackMaps.cpp
parent0ad96c818cc5fd086c820b3b15650222020f4ebf (diff)
downloadbcm5719-llvm-c4ee2c5188872b5a7a4e0d6379141f65cc7356bd.tar.gz
bcm5719-llvm-c4ee2c5188872b5a7a4e0d6379141f65cc7356bd.zip
[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. llvm-svn: 225807
Diffstat (limited to 'llvm/lib/CodeGen/StackMaps.cpp')
-rw-r--r--llvm/lib/CodeGen/StackMaps.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/StackMaps.cpp b/llvm/lib/CodeGen/StackMaps.cpp
index aab8d522144..f1d1160c952 100644
--- a/llvm/lib/CodeGen/StackMaps.cpp
+++ b/llvm/lib/CodeGen/StackMaps.cpp
@@ -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),
OpenPOWER on IntegriCloud