diff options
author | Eric Christopher <echristo@gmail.com> | 2016-10-01 01:50:25 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2016-10-01 01:50:25 +0000 |
commit | 98983d0aff8164bad43ea8d9bef308c14c5d77ca (patch) | |
tree | 81e8c88aeb4ffa834703ac317bceb3962d94d34e /llvm/lib | |
parent | 3070fdf79838f88738e32b2e11caccc6e3ce1021 (diff) | |
download | bcm5719-llvm-98983d0aff8164bad43ea8d9bef308c14c5d77ca.tar.gz bcm5719-llvm-98983d0aff8164bad43ea8d9bef308c14c5d77ca.zip |
Remove TargetTriple from AArch64MCInstLower as it's used in few places
and can be pulled from the TargetMachine. NFC.
llvm-svn: 283000
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/AArch64/AArch64MCInstLower.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64MCInstLower.cpp b/llvm/lib/Target/AArch64/AArch64MCInstLower.cpp index 2b4cdf1083b..45083df7ab4 100644 --- a/llvm/lib/Target/AArch64/AArch64MCInstLower.cpp +++ b/llvm/lib/Target/AArch64/AArch64MCInstLower.cpp @@ -29,7 +29,7 @@ using namespace llvm; extern cl::opt<bool> EnableAArch64ELFLocalDynamicTLSGeneration; AArch64MCInstLower::AArch64MCInstLower(MCContext &ctx, AsmPrinter &printer) - : Ctx(ctx), Printer(printer), TargetTriple(printer.getTargetTriple()) {} + : Ctx(ctx), Printer(printer) {} MCSymbol * AArch64MCInstLower::GetGlobalAddressSymbol(const MachineOperand &MO) const { @@ -153,10 +153,11 @@ MCOperand AArch64MCInstLower::lowerSymbolOperandELF(const MachineOperand &MO, MCOperand AArch64MCInstLower::LowerSymbolOperand(const MachineOperand &MO, MCSymbol *Sym) const { - if (TargetTriple.isOSDarwin()) + if (Printer.TM.getTargetTriple().isOSDarwin()) return lowerSymbolOperandDarwin(MO, Sym); - assert(TargetTriple.isOSBinFormatELF() && "Expect Darwin or ELF target"); + assert(Printer.TM.getTargetTriple().isOSBinFormatELF() && + "Expect Darwin or ELF target"); return lowerSymbolOperandELF(MO, Sym); } |