diff options
author | Quentin Colombet <qcolombet@apple.com> | 2013-05-24 22:51:52 +0000 |
---|---|---|
committer | Quentin Colombet <qcolombet@apple.com> | 2013-05-24 22:51:52 +0000 |
commit | de7cbbfcce5c068f0699bdcb6dac093c0c91ba6f (patch) | |
tree | 5ab055706a3d1e3379dd568d4ee386fa2563f518 /lib/Target/ARM/MCTargetDesc | |
parent | fce7b6b5d9905bf35641ee7f001b6b66dbc26c2d (diff) | |
download | llvm-de7cbbfcce5c068f0699bdcb6dac093c0c91ba6f.tar.gz llvm-de7cbbfcce5c068f0699bdcb6dac093c0c91ba6f.tar.bz2 llvm-de7cbbfcce5c068f0699bdcb6dac093c0c91ba6f.tar.xz |
Follow up of the introduction of MCSymbolizer.
- Ressurect old MCDisassemble API to soften transition.
- Extend MCTargetDesc to set target specific symbolizer.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@182688 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/MCTargetDesc')
-rw-r--r-- | lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp b/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp index c092801a67..164f57b2d0 100644 --- a/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp +++ b/lib/Target/ARM/MCTargetDesc/ARMMCTargetDesc.cpp @@ -212,12 +212,13 @@ static MCInstPrinter *createARMMCInstPrinter(const Target &T, return 0; } -static MCRelocationInfo *createMCRelocationInfo(StringRef TT, MCContext &Ctx) { +static MCRelocationInfo *createARMMCRelocationInfo(StringRef TT, + MCContext &Ctx) { Triple TheTriple(TT); if (TheTriple.isEnvironmentMachO()) return createARMMachORelocationInfo(Ctx); // Default to the stock relocation info. - return llvm::createMCRelocationInfo(Ctx); + return llvm::createMCRelocationInfo(TT, Ctx); } namespace { @@ -307,7 +308,7 @@ extern "C" void LLVMInitializeARMTargetMC() { // Register the MC relocation info. TargetRegistry::RegisterMCRelocationInfo(TheARMTarget, - createMCRelocationInfo); + createARMMCRelocationInfo); TargetRegistry::RegisterMCRelocationInfo(TheThumbTarget, - createMCRelocationInfo); + createARMMCRelocationInfo); } |