Use MCSymbols for FastISel.
authorRafael Espindola <rafael.espindola@gmail.com>
Tue, 23 Jun 2015 12:21:54 +0000 (12:21 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Tue, 23 Jun 2015 12:21:54 +0000 (12:21 +0000)
commitce4c2bc1d66da225d98563d5592c1fda4f18d838
tree51d2a6b274290ee430713918bf0e88427fe959bf
parent41de8027b1f744c1e52f54ca9a1b120c7fda81af
Use MCSymbols for FastISel.

The summary is that it moves the mangling earlier and replaces a few
calls to .addExternalSymbol with addSym.

I originally wanted to replace all the uses of addExternalSymbol with
addSym, but noticed it was a lot of work and doesn't need to be done
all at once.

llvm-svn: 240395
12 files changed:
llvm/include/llvm/CodeGen/FastISel.h
llvm/include/llvm/CodeGen/MachineInstrBuilder.h
llvm/include/llvm/CodeGen/MachineOperand.h
llvm/include/llvm/IR/Mangler.h
llvm/lib/CodeGen/SelectionDAG/FastISel.cpp
llvm/lib/IR/Mangler.cpp
llvm/lib/Target/AArch64/AArch64FastISel.cpp
llvm/lib/Target/AArch64/AArch64MCInstLower.cpp
llvm/lib/Target/Mips/MipsFastISel.cpp
llvm/lib/Target/Mips/MipsMCInstLower.cpp
llvm/lib/Target/PowerPC/PPCFastISel.cpp
llvm/lib/Target/X86/X86FastISel.cpp