[llvm-commits] [llvm] r81495 - /llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp

Chris Lattner sabre at nondot.org
Thu Sep 10 17:41:16 PDT 2009


Author: lattner
Date: Thu Sep 10 19:41:15 2009
New Revision: 81495

URL: http://llvm.org/viewvc/llvm-project?rev=81495&view=rev
Log:
PHI nodes can never reach the asmprinter, assert and die instead of printing
out an illegal "PHINODE" instruction.

Modified:
    llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp

Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=81495&r1=81494&r2=81495&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Thu Sep 10 19:41:15 2009
@@ -558,7 +558,8 @@
 
   for (CodeGenTarget::inst_iterator I = Target.inst_begin(),
          E = Target.inst_end(); I != E; ++I)
-    if (!I->second.AsmString.empty())
+    if (!I->second.AsmString.empty() &&
+        I->second.TheDef->getName() != "PHI")
       Instructions.push_back(AsmWriterInst(I->second, AsmWriter));
 
   // Get the instruction numbering.





More information about the llvm-commits mailing list