[llvm-commits] [llvm] r132869 - /llvm/trunk/lib/Target/X86/X86FastISel.cpp
Eli Friedman
eli.friedman at gmail.com
Fri Jun 10 18:55:07 PDT 2011
Author: efriedma
Date: Fri Jun 10 20:55:07 2011
New Revision: 132869
URL: http://llvm.org/viewvc/llvm-project?rev=132869&view=rev
Log:
Make sure to pass OpFlags into MachineInstrBuilder::addExternalSymbol; the
memcpy/memset symbol doesn't get marked up correctly in PIC modes otherwise.
Should fix llvm-x86_64-linux-checks buildbot. Followup to r132864.
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=132869&r1=132868&r2=132869&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Fri Jun 10 20:55:07 2011
@@ -1784,7 +1784,7 @@
MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CallOpc));
if (MemIntName)
- MIB.addExternalSymbol(MemIntName);
+ MIB.addExternalSymbol(MemIntName, OpFlags);
else
MIB.addGlobalAddress(GV, 0, OpFlags);
}
More information about the llvm-commits
mailing list