summaryrefslogtreecommitdiff
path: root/utils/TableGen/TableGen.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-08-01 03:55:39 +0000
committerChris Lattner <sabre@nondot.org>2004-08-01 03:55:39 +0000
commit2082ebe8b3a5db302748828ab4f79a36d239c1d9 (patch)
tree5bab7643155a37133b11ae955f1f49a4adbf1990 /utils/TableGen/TableGen.cpp
parent1ab7c5b5e891804411d85d98403536f705d82fcc (diff)
downloadllvm-2082ebe8b3a5db302748828ab4f79a36d239c1d9.tar.gz
llvm-2082ebe8b3a5db302748828ab4f79a36d239c1d9.tar.bz2
llvm-2082ebe8b3a5db302748828ab4f79a36d239c1d9.tar.xz
Finegrainify namespacification
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@15381 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils/TableGen/TableGen.cpp')
-rw-r--r--utils/TableGen/TableGen.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp
index dd4d22aa4f..7bd52b37cf 100644
--- a/utils/TableGen/TableGen.cpp
+++ b/utils/TableGen/TableGen.cpp
@@ -26,8 +26,7 @@
#include <algorithm>
#include <cstdio>
#include <fstream>
-
-namespace llvm {
+using namespace llvm;
enum ActionType {
PrintRecords,
@@ -79,10 +78,12 @@ namespace {
cl::value_desc("directory"), cl::init(""));
}
+namespace llvm {
+ void ParseFile(const std::string &Filename,
+ const std::string &IncludeDir);
+}
-void ParseFile(const std::string &Filename, const std::string & IncludeDir);
-
-RecordKeeper Records;
+RecordKeeper llvm::Records;
static Init *getBit(Record *R, unsigned BitNo) {
const std::vector<RecordVal> &V = R->getValues();
@@ -408,10 +409,6 @@ static void ParseMachineCode() {
}
}
-} // End llvm namespace
-
-using namespace llvm;
-
int main(int argc, char **argv) {
cl::ParseCommandLineOptions(argc, argv);
ParseFile(InputFilename, IncludeDir);