aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-09-18 00:04:53 +0000
committerJim Grosbach <grosbach@apple.com>2010-09-18 00:04:53 +0000
commitd30cfde935cf5a8649285b6c47abb5e0f6669590 (patch)
tree1939efe0c2478506b04ca9edd1674cf4023abd9f
parent23110b3c160949db8690f4ab7cb66540c7aae121 (diff)
PC-relative pseudo instructions are lowered and printed directly. Any encounter
with one in the generic printing code is an error. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@114242 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp b/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
index c15d457265..528abfe4b2 100644
--- a/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
+++ b/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp
@@ -387,7 +387,7 @@ void ARMInstPrinter::printAddrModePCOperand(const MCInst *MI, unsigned OpNum,
// All instructions using addrmodepc are pseudos and should have been
// handled explicitly in printInstructionThroughMCStreamer(). If one got
// here, it wasn't, so something's wrong.
- assert(0 && "Unhandled addrmodepc operand!");
+ llvm_unreachable("Unhandled PC-relative pseudo-instruction!");
}
void ARMInstPrinter::printBitfieldInvMaskImmOperand(const MCInst *MI,
@@ -522,8 +522,7 @@ void ARMInstPrinter::printNoHashImmediate(const MCInst *MI, unsigned OpNum,
void ARMInstPrinter::printPCLabel(const MCInst *MI, unsigned OpNum,
raw_ostream &O) {
- // FIXME: remove this.
- abort();
+ llvm_unreachable("Unhandled PC-relative pseudo-instruction!");
}
void ARMInstPrinter::printThumbS4ImmOperand(const MCInst *MI, unsigned OpNum,