diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-06-11 01:55:07 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-06-11 01:55:07 +0000 |
commit | 1735b2919698da5e67a11bbce01feef77c481b7b (patch) | |
tree | 8f73710fcda1fcaa7e4d58d0dcd110d20fe60322 | |
parent | 33823727c80ad78773c09a588d8399fc0f4f0b9a (diff) | |
download | bcm5719-llvm-1735b2919698da5e67a11bbce01feef77c481b7b.tar.gz bcm5719-llvm-1735b2919698da5e67a11bbce01feef77c481b7b.zip |
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.
llvm-svn: 132869
-rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index eeea18e1d8c..f1b9972530c 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -1784,7 +1784,7 @@ bool X86FastISel::DoSelectCall(const Instruction *I, const char *MemIntName) { 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); } |