[llvm-commits] [llvm] r56184 - /llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
Evan Cheng
evan.cheng at apple.com
Fri Sep 12 18:55:59 PDT 2008
Author: evancheng
Date: Fri Sep 12 20:55:59 2008
New Revision: 56184
URL: http://llvm.org/viewvc/llvm-project?rev=56184&view=rev
Log:
Fix random abort.
Modified:
llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp?rev=56184&r1=56183&r2=56184&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMCodeEmitter.cpp Fri Sep 12 20:55:59 2008
@@ -184,8 +184,10 @@
emitJumpTableAddress(MO.getIndex(), ARM::reloc_arm_relative);
else if (MO.isMachineBasicBlock())
emitMachineBasicBlock(MO.getMBB());
-
- abort();
+ else {
+ cerr << "ERROR: Unknown type of MachineOperand: " << MO << "\n";
+ abort();
+ }
return 0;
}
More information about the llvm-commits
mailing list