diff options
author | Chris Lattner <sabre@nondot.org> | 2004-08-01 03:55:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-08-01 03:55:39 +0000 |
commit | 2082ebe8b3a5db302748828ab4f79a36d239c1d9 (patch) | |
tree | 5bab7643155a37133b11ae955f1f49a4adbf1990 /utils/TableGen/TableGen.cpp | |
parent | 1ab7c5b5e891804411d85d98403536f705d82fcc (diff) | |
download | external_llvm-2082ebe8b3a5db302748828ab4f79a36d239c1d9.zip external_llvm-2082ebe8b3a5db302748828ab4f79a36d239c1d9.tar.gz external_llvm-2082ebe8b3a5db302748828ab4f79a36d239c1d9.tar.bz2 |
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.cpp | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/utils/TableGen/TableGen.cpp b/utils/TableGen/TableGen.cpp index dd4d22a..7bd52b3 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); |