[llvm-commits] [llvm] r96661 - /llvm/trunk/utils/TableGen/InstrEnumEmitter.cpp

Chris Lattner sabre at nondot.org
Thu Feb 18 23:02:21 PST 2010


Author: lattner
Date: Fri Feb 19 01:02:20 2010
New Revision: 96661

URL: http://llvm.org/viewvc/llvm-project?rev=96661&view=rev
Log:
fix this to work more determinstically, patch by Thomas Veith!

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

Modified: llvm/trunk/utils/TableGen/InstrEnumEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/InstrEnumEmitter.cpp?rev=96661&r1=96660&r2=96661&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/InstrEnumEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/InstrEnumEmitter.cpp Fri Feb 19 01:02:20 2010
@@ -29,7 +29,7 @@
   std::string Namespace;
   for (CodeGenTarget::inst_iterator II = Target.inst_begin(), 
        E = Target.inst_end(); II != E; ++II) {
-    if (II->second.Namespace != "TargetInstrInfo") {
+    if (II->second.Namespace != "TargetOpcode") {
       Namespace = II->second.Namespace;
       break;
     }





More information about the llvm-commits mailing list