summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit684786640000a5597d50a2d6d6b9652d6881df64 (patch)
tree71b85ecf67e0f8887309f8dd3396c0c8242f6bab /llvm/utils/TableGen/TableGen.cpp
parent6971be8159289f752175df542e9bb418db9527bd (diff)
downloadbcm5719-llvm-684786640000a5597d50a2d6d6b9652d6881df64.tar.gz
bcm5719-llvm-684786640000a5597d50a2d6d6b9652d6881df64.zip
Finegrainify namespacification
llvm-svn: 15381
Diffstat (limited to 'llvm/utils/TableGen/TableGen.cpp')
-rw-r--r--llvm/utils/TableGen/TableGen.cpp15
1 files changed, 6 insertions, 9 deletions
diff --git a/llvm/utils/TableGen/TableGen.cpp b/llvm/utils/TableGen/TableGen.cpp
index dd4d22aa4f0..7bd52b37cf0 100644
--- a/llvm/utils/TableGen/TableGen.cpp
+++ b/llvm/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);
OpenPOWER on IntegriCloud