aboutsummaryrefslogtreecommitdiff
path: root/utils/TableGen/InstrSelectorEmitter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/TableGen/InstrSelectorEmitter.cpp')
-rw-r--r--utils/TableGen/InstrSelectorEmitter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/TableGen/InstrSelectorEmitter.cpp b/utils/TableGen/InstrSelectorEmitter.cpp
index 5fb83c8755..f6ca2a22e4 100644
--- a/utils/TableGen/InstrSelectorEmitter.cpp
+++ b/utils/TableGen/InstrSelectorEmitter.cpp
@@ -982,6 +982,7 @@ void InstrSelectorEmitter::run(std::ostream &OS) {
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 @@ void InstrSelectorEmitter::run(std::ostream &OS) {
<< " }\n\n N->addValue(Val); // Do not ever recalculate this\n"
<< " return Val;\n}\n\n";
}
- EmitSourceFileTail(OS);
+ OS << "} // End llvm namespace \n";
}
-