Fix an incompatibility with GCC 4.1, thanks to Vladimir Merzliakov
authorChris Lattner <sabre@nondot.org>
Mon, 24 Oct 2005 15:04:15 +0000 (15:04 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 24 Oct 2005 15:04:15 +0000 (15:04 +0000)
for pointing this out!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23963 91177308-0d34-0410-b5e6-96231b3b80d8

utils/TableGen/CodeEmitterGen.cpp

index d8f81548061e44769736d4f5e0f7aff593029a69..ef3a6e9ad5b6352f8a051c470be7a1ae54a80cd3 100644 (file)
@@ -76,7 +76,6 @@ void CodeEmitterGen::run(std::ostream &o) {
   std::vector<Record*> Insts = Records.getAllDerivedDefinitions("Instruction");
 
   EmitSourceFileHeader("Machine Code Emitter", o);
-  o << "namespace llvm {\n\n";
   std::string Namespace = Insts[0]->getValueAsString("Namespace") + "::";
 
   // Emit function declaration
@@ -255,6 +254,4 @@ void CodeEmitterGen::run(std::ostream &o) {
     << "  }\n"
     << "  return Value;\n"
     << "}\n\n";
-
-  o << "} // End llvm namespace \n";
 }