diff options
author | Che-Liang Chiou <clchiou@gmail.com> | 2011-10-08 12:39:26 +0000 |
---|---|---|
committer | Che-Liang Chiou <clchiou@gmail.com> | 2011-10-08 12:39:26 +0000 |
commit | 3ae9cf5ba4934bae9576e9aaabf4f401901466f8 (patch) | |
tree | 35249062e018f3fec7420c7ea8fc9d9ff168ee83 /lib/TableGen/Main.cpp | |
parent | f8557957fbdd0f08da3a468daa568b2050745a98 (diff) |
Revert r141079: tblgen: add preprocessor as a separate mode
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141492 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/TableGen/Main.cpp')
-rw-r--r-- | lib/TableGen/Main.cpp | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/lib/TableGen/Main.cpp b/lib/TableGen/Main.cpp index e15c09fca0..01bc55e989 100644 --- a/lib/TableGen/Main.cpp +++ b/lib/TableGen/Main.cpp @@ -16,7 +16,6 @@ //===----------------------------------------------------------------------===// #include "TGParser.h" -#include "TGPreprocessor.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/MemoryBuffer.h" @@ -44,12 +43,6 @@ namespace { cl::list<std::string> IncludeDirs("I", cl::desc("Directory of include files"), cl::value_desc("directory"), cl::Prefix); - - cl::opt<bool> - PreprocessOnly("E", - cl::desc("Stop after the preprocessing stage; " - "This is work in progress and has no effect yet"), - cl::init(false)); } namespace llvm { @@ -74,22 +67,6 @@ int TableGenMain(char *argv0, TableGenAction &Action) { // it later. SrcMgr.setIncludeDirs(IncludeDirs); - // TODO(clchiou): Integrate preprocessor into TGParser - if (PreprocessOnly) { - std::string Error; - tool_output_file Out(OutputFilename.c_str(), Error); - if (!Error.empty()) { - errs() << argv0 << ": error opening " << OutputFilename - << ":" << Error << "\n"; - return 1; - } - TGPreprocessor Preprocessor(SrcMgr, Out); - if (Preprocessor.PreprocessFile()) - return 1; - Out.keep(); - return 0; - } - TGParser Parser(SrcMgr, Records); if (Parser.ParseFile()) |