diff options
author | Reed Kotler <rkotler@mips.com> | 2013-02-15 21:05:58 +0000 |
---|---|---|
committer | Reed Kotler <rkotler@mips.com> | 2013-02-15 21:05:58 +0000 |
commit | 76c9bcd43a6088f9f3cc1a928496a76d2ff4e223 (patch) | |
tree | e5b67d60ad1d2faa0827816ddf5972bfc94eeed5 /llvm/lib/Target/Mips/MipsAsmPrinter.cpp | |
parent | 637b23dc63dfbee78891ba95a13f7236df89b2e5 (diff) | |
download | bcm5719-llvm-76c9bcd43a6088f9f3cc1a928496a76d2ff4e223.tar.gz bcm5719-llvm-76c9bcd43a6088f9f3cc1a928496a76d2ff4e223.zip |
Remove a final dependency on the form field in tablegen; which is a remnant
of the old jit and which we don't intend to support in mips16 or micromips.
This dependency is for the testing of whether an instruction is a pseudo.
llvm-svn: 175297
Diffstat (limited to 'llvm/lib/Target/Mips/MipsAsmPrinter.cpp')
-rw-r--r-- | llvm/lib/Target/Mips/MipsAsmPrinter.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp index 84bf48cd675..003d8908181 100644 --- a/llvm/lib/Target/Mips/MipsAsmPrinter.cpp +++ b/llvm/lib/Target/Mips/MipsAsmPrinter.cpp @@ -74,6 +74,16 @@ void MipsAsmPrinter::EmitInstruction(const MachineInstr *MI) { if (emitPseudoExpansionLowering(OutStreamer, &*I)) continue; + // The inMips16Mode() test is not permanent. + // Some instructions are marked as pseudo right now which + // would make the test fail for the wrong reason but + // that will be fixed soon. We need this here because we are + // removing another test for this situation downstream in the + // callchain. + // + if (I->isPseudo() && !Subtarget->inMips16Mode()) + llvm_unreachable("Pseudo opcode found in EmitInstruction()"); + MCInst TmpInst0; MCInstLowering.Lower(I, TmpInst0); OutStreamer.EmitInstruction(TmpInst0); |