[llvm-commits] [llvm] r114601 - /llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp
Jim Grosbach
grosbach at apple.com
Wed Sep 22 16:01:29 PDT 2010
Author: grosbach
Date: Wed Sep 22 18:01:28 2010
New Revision: 114601
URL: http://llvm.org/viewvc/llvm-project?rev=114601&view=rev
Log:
Enable a few additional asserts in MC instruction lowering.
Modified:
llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp
Modified: llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp?rev=114601&r1=114600&r2=114601&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMMCInstLower.cpp Wed Sep 22 18:01:28 2010
@@ -75,11 +75,10 @@
raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "JTI"
<< Printer.getFunctionNumber() << '_' << MO.getIndex();
-#if 0
switch (MO.getTargetFlags()) {
- default: llvm_unreachable("Unknown target flag on GV operand");
+ default: assert(0 && "Unknown target flag on jump table operand");
+ case 0: break;
}
-#endif
// Create a symbol for the name.
return Ctx.GetOrCreateSymbol(Name.str());
@@ -91,11 +90,10 @@
raw_svector_ostream(Name) << Printer.MAI->getPrivateGlobalPrefix() << "CPI"
<< Printer.getFunctionNumber() << '_' << MO.getIndex();
-#if 0
switch (MO.getTargetFlags()) {
- default: llvm_unreachable("Unknown target flag on GV operand");
+ default: assert(0 && "Unknown target flag on CPI operand");
+ case 0: break;
}
-#endif
// Create a symbol for the name.
return Ctx.GetOrCreateSymbol(Name.str());
@@ -107,11 +105,10 @@
// lot of extra uniquing.
const MCExpr *Expr = MCSymbolRefExpr::Create(Sym, Ctx);
-#if 0
switch (MO.getTargetFlags()) {
- default: llvm_unreachable("Unknown target flag on GV operand");
+ default: assert(0 && "Unknown target flag on Symbol operand");
+ case 0: break;
}
-#endif
if (!MO.isJTI() && MO.getOffset())
Expr = MCBinaryExpr::CreateAdd(Expr,
More information about the llvm-commits
mailing list