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)
commitb9ed9af3412c2722d1047ca3853748189108331d
treeff4f300607eacd6d3129adc1f6c32b8ac20c15d0
parentb7f5b8b4b288b43859c4ed32f439812896167cac
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240395 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/CodeGen/FastISel.h
include/llvm/CodeGen/MachineInstrBuilder.h
include/llvm/CodeGen/MachineOperand.h
include/llvm/IR/Mangler.h
lib/CodeGen/SelectionDAG/FastISel.cpp
lib/IR/Mangler.cpp
lib/Target/AArch64/AArch64FastISel.cpp
lib/Target/AArch64/AArch64MCInstLower.cpp
lib/Target/Mips/MipsFastISel.cpp
lib/Target/Mips/MipsMCInstLower.cpp
lib/Target/PowerPC/PPCFastISel.cpp
lib/Target/X86/X86FastISel.cpp