mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132869 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1784,7 +1784,7 @@ bool X86FastISel::DoSelectCall(const Instruction *I, const char *MemIntName) {
|
|||||||
|
|
||||||
MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CallOpc));
|
MIB = BuildMI(*FuncInfo.MBB, FuncInfo.InsertPt, DL, TII.get(CallOpc));
|
||||||
if (MemIntName)
|
if (MemIntName)
|
||||||
MIB.addExternalSymbol(MemIntName);
|
MIB.addExternalSymbol(MemIntName, OpFlags);
|
||||||
else
|
else
|
||||||
MIB.addGlobalAddress(GV, 0, OpFlags);
|
MIB.addGlobalAddress(GV, 0, OpFlags);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user