diff options
author | Chris Lattner <sabre@nondot.org> | 2009-08-08 00:05:42 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-08-08 00:05:42 +0000 |
commit | 7d3374951ee61f90f4e442c50dffb02bb9883ae7 (patch) | |
tree | 9db5c3c0b98e41dc11da6b27698b72cb4e055458 /lib | |
parent | 1c95afc2788b2fa102b5ed8a9721d521afc0d220 (diff) | |
download | external_llvm-7d3374951ee61f90f4e442c50dffb02bb9883ae7.zip external_llvm-7d3374951ee61f90f4e442c50dffb02bb9883ae7.tar.gz external_llvm-7d3374951ee61f90f4e442c50dffb02bb9883ae7.tar.bz2 |
don't check the result of printInstruction anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp | 4 | ||||
-rw-r--r-- | lib/Target/MSP430/MSP430AsmPrinter.cpp | 5 | ||||
-rw-r--r-- | lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp | 5 | ||||
-rw-r--r-- | lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp | 5 | ||||
-rw-r--r-- | lib/Target/XCore/XCoreAsmPrinter.cpp | 5 |
5 files changed, 5 insertions, 19 deletions
diff --git a/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp b/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp index c2152a4..92b85d3 100644 --- a/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp +++ b/lib/Target/Alpha/AsmPrinter/AlphaAsmPrinter.cpp @@ -175,9 +175,7 @@ bool AlphaAsmPrinter::runOnMachineFunction(MachineFunction &MF) { II != E; ++II) { // Print the assembly for the instruction. ++EmittedInsts; - if (!printInstruction(II)) { - llvm_unreachable("Unhandled instruction in asm writer!"); - } + printInstruction(II); } } diff --git a/lib/Target/MSP430/MSP430AsmPrinter.cpp b/lib/Target/MSP430/MSP430AsmPrinter.cpp index 2da7cdd..573ca57 100644 --- a/lib/Target/MSP430/MSP430AsmPrinter.cpp +++ b/lib/Target/MSP430/MSP430AsmPrinter.cpp @@ -142,10 +142,7 @@ void MSP430AsmPrinter::printMachineInstruction(const MachineInstr *MI) { ++EmittedInsts; // Call the autogenerated instruction printer routines. - if (printInstruction(MI)) - return; - - llvm_unreachable("Should not happen"); + printInstruction(MI); } void MSP430AsmPrinter::printOperand(const MachineInstr *MI, int OpNum, diff --git a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp index d7e050f..8a0c767 100644 --- a/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp +++ b/lib/Target/PowerPC/AsmPrinter/PPCAsmPrinter.cpp @@ -571,10 +571,7 @@ void PPCAsmPrinter::printMachineInstruction(const MachineInstr *MI) { } } - if (printInstruction(MI)) - return; // Printer was automatically generated - - llvm_unreachable("Unhandled instruction in asm writer!"); + printInstruction(MI); } /// runOnMachineFunction - This uses the printMachineInstruction() diff --git a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp index b823968..2c73517 100644 --- a/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp +++ b/lib/Target/SystemZ/AsmPrinter/SystemZAsmPrinter.cpp @@ -152,10 +152,7 @@ void SystemZAsmPrinter::printMachineInstruction(const MachineInstr *MI) { ++EmittedInsts; // Call the autogenerated instruction printer routines. - if (printInstruction(MI)) - return; - - llvm_unreachable("Unreachable!"); + printInstruction(MI); } void SystemZAsmPrinter::printPCRelImmOperand(const MachineInstr *MI, int OpNum) { diff --git a/lib/Target/XCore/XCoreAsmPrinter.cpp b/lib/Target/XCore/XCoreAsmPrinter.cpp index dc31212..1b08c5f 100644 --- a/lib/Target/XCore/XCoreAsmPrinter.cpp +++ b/lib/Target/XCore/XCoreAsmPrinter.cpp @@ -364,10 +364,7 @@ void XCoreAsmPrinter::printMachineInstruction(const MachineInstr *MI) { O << "\n"; return; } - if (printInstruction(MI)) { - return; - } - llvm_unreachable("Unhandled instruction in asm writer!"); + printInstruction(MI); } bool XCoreAsmPrinter::doInitialization(Module &M) { |