fix this to work more determinstically, patch by Thomas Veith!
authorChris Lattner <sabre@nondot.org>
Fri, 19 Feb 2010 07:02:20 +0000 (07:02 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 19 Feb 2010 07:02:20 +0000 (07:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96661 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/InstrEnumEmitter.cpp

index f382d34f3486866d7fdfde2606578cc6f381d357..d1e7f3dd35d66444cee5a73ac8e743f5ff68e569 100644 (file)
@@ -29,7 +29,7 @@ void InstrEnumEmitter::run(raw_ostream &OS) {
   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;
     }