[llvm] r225807 - [StackMaps] Use CurrentFnSymForSize

Hal Finkel hfinkel at anl.gov
Tue Jan 13 09:48:08 PST 2015


Author: hfinkel
Date: Tue Jan 13 11:48:07 2015
New Revision: 225807

URL: http://llvm.org/viewvc/llvm-project?rev=225807&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/CodeGen/StackMaps.cpp

Modified: llvm/trunk/lib/CodeGen/StackMaps.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/StackMaps.cpp?rev=225807&r1=225806&r2=225807&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/StackMaps.cpp (original)
+++ llvm/trunk/lib/CodeGen/StackMaps.cpp Tue Jan 13 11:48:07 2015
@@ -241,7 +241,7 @@ void StackMaps::recordStackMapOpers(cons
   // 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),





More information about the llvm-commits mailing list