Do not #include files into the llvm namespace
llvm-svn: 15849
diff --git a/llvm/utils/TableGen/InstrSelectorEmitter.cpp b/llvm/utils/TableGen/InstrSelectorEmitter.cpp
index 5fb83c8..f6ca2a2 100644
--- a/llvm/utils/TableGen/InstrSelectorEmitter.cpp
+++ b/llvm/utils/TableGen/InstrSelectorEmitter.cpp
@@ -982,6 +982,7 @@
EmitSourceFileHeader("Instruction Selector for the " + Target.getName() +
" target", OS);
+ OS << "namespace llvm {\n\n";
// Output the slot number enums...
OS << "\nenum { // Slot numbers...\n"
@@ -1291,6 +1292,5 @@
<< " }\n\n N->addValue(Val); // Do not ever recalculate this\n"
<< " return Val;\n}\n\n";
}
- EmitSourceFileTail(OS);
+ OS << "} // End llvm namespace \n";
}
-