diff options
| author | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-09-15 13:46:21 +0000 |
|---|---|---|
| committer | Daniel Sanders <daniel.sanders@imgtec.com> | 2015-09-15 13:46:21 +0000 |
| commit | c40de480418dae6cd11df64528c0074229e83769 (patch) | |
| tree | b6ad2b016790cd1963f00068aa8a75f2a0990cea /llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp | |
| parent | d1062bbd893a43004a19a65c414b0453cf3ca04d (diff) | |
| download | bcm5719-llvm-c40de480418dae6cd11df64528c0074229e83769.tar.gz bcm5719-llvm-c40de480418dae6cd11df64528c0074229e83769.zip | |
Revert r247684 - Replace Triple with a new TargetTuple ...
LLDB needs to be updated in the same commit.
llvm-svn: 247686
Diffstat (limited to 'llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp')
| -rw-r--r-- | llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp index 9f0b9f7f09a..c0d23127849 100644 --- a/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp +++ b/llvm/lib/Target/Mips/AsmParser/MipsAsmParser.cpp @@ -375,8 +375,8 @@ public: MipsAsmParser(MCSubtargetInfo &sti, MCAsmParser &parser, const MCInstrInfo &MII, const MCTargetOptions &Options) : MCTargetAsmParser(Options), STI(sti), - ABI(MipsABIInfo::computeTargetABI(sti.getTargetTuple(), sti.getCPU(), - Options)) { + ABI(MipsABIInfo::computeTargetABI(Triple(sti.getTargetTriple()), + sti.getCPU(), Options)) { MCAsmParserExtension::Initialize(parser); parser.addAliasForDirective(".asciiz", ".asciz"); @@ -402,9 +402,9 @@ public: IsPicEnabled = (getContext().getObjectFileInfo()->getRelocM() == Reloc::PIC_); - const TargetTuple &TT = sti.getTargetTuple(); - if ((TT.getArch() == TargetTuple::mips) || - (TT.getArch() == TargetTuple::mips64)) + Triple TheTriple(sti.getTargetTriple()); + if ((TheTriple.getArch() == Triple::mips) || + (TheTriple.getArch() == Triple::mips64)) IsLittleEndian = false; else IsLittleEndian = true; |

