diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-09-18 00:04:53 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-09-18 00:04:53 +0000 |
commit | 8a5a6a6c1ef3e35090627ecea5e37b6cb74be779 (patch) | |
tree | ca92624989079ecd1be754b5f6bf68e11904189b | |
parent | 49c15c0f9fb7c6273b332ca1a57c9f49deeb9d6c (diff) | |
download | bcm5719-llvm-8a5a6a6c1ef3e35090627ecea5e37b6cb74be779.tar.gz bcm5719-llvm-8a5a6a6c1ef3e35090627ecea5e37b6cb74be779.zip |
PC-relative pseudo instructions are lowered and printed directly. Any encounter
with one in the generic printing code is an error.
llvm-svn: 114242
-rw-r--r-- | llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp b/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp index c15d457265e..528abfe4b26 100644 --- a/llvm/lib/Target/ARM/AsmPrinter/ARMInstPrinter.cpp +++ b/llvm/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, |