From 80491f4c52bdace87c3591015a8b78f0d54584e6 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Fri, 19 Feb 2010 07:02:20 +0000 Subject: [PATCH] fix this to work more determinstically, patch by Thomas Veith! llvm-svn: 96661 --- utils/TableGen/InstrEnumEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/TableGen/InstrEnumEmitter.cpp b/utils/TableGen/InstrEnumEmitter.cpp index f382d34f348..d1e7f3dd35d 100644 --- a/utils/TableGen/InstrEnumEmitter.cpp +++ b/utils/TableGen/InstrEnumEmitter.cpp @@ -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; }