aboutsummaryrefslogtreecommitdiffstats
path: root/utils/TableGen/InstrSelectorEmitter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-17 03:08:28 +0000
committerChris Lattner <sabre@nondot.org>2004-08-17 03:08:28 +0000
commit2c38413b3f5420f45f2f8220b21862246d446dd0 (patch)
tree46bb232564b53a3493e7b5f183359fb825d92faa /utils/TableGen/InstrSelectorEmitter.cpp
parent250c4184c727a81b7912f08c3ef2928a700834de (diff)
downloadexternal_llvm-2c38413b3f5420f45f2f8220b21862246d446dd0.zip
external_llvm-2c38413b3f5420f45f2f8220b21862246d446dd0.tar.gz
external_llvm-2c38413b3f5420f45f2f8220b21862246d446dd0.tar.bz2
Do not #include files into the llvm namespace
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15849 91177308-0d34-0410-b5e6-96231b3b80d8
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 5fb83c8..f6ca2a2 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";
}
-