[llvm-commits] [llvm] r133083 - /llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Rafael Espindola
rafael.espindola at gmail.com
Wed Jun 15 14:00:28 PDT 2011
Author: rafael
Date: Wed Jun 15 16:00:28 2011
New Revision: 133083
URL: http://llvm.org/viewvc/llvm-project?rev=133083&view=rev
Log:
Handle jump tables. Test to follow soon.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp?rev=133083&r1=133082&r2=133083&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/AsmPrinter.cpp Wed Jun 15 16:00:28 2011
@@ -1948,6 +1948,8 @@
for (MachineInstr::mop_iterator OI = MI.operands_begin(),
OE = MI.operands_end(); OI != OE; ++OI) {
const MachineOperand& OP = *OI;
+ if (OP.isJTI())
+ return false;
if (OP.isMBB() && OP.getMBB() == MBB)
return false;
}
More information about the llvm-commits
mailing list