aboutsummaryrefslogtreecommitdiff
path: root/lib/TableGen/TGPreprocessor.h
diff options
context:
space:
mode:
authorChe-Liang Chiou <clchiou@gmail.com>2011-10-08 12:39:26 +0000
committerChe-Liang Chiou <clchiou@gmail.com>2011-10-08 12:39:26 +0000
commit3ae9cf5ba4934bae9576e9aaabf4f401901466f8 (patch)
tree35249062e018f3fec7420c7ea8fc9d9ff168ee83 /lib/TableGen/TGPreprocessor.h
parentf8557957fbdd0f08da3a468daa568b2050745a98 (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/TGPreprocessor.h')
-rw-r--r--lib/TableGen/TGPreprocessor.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/lib/TableGen/TGPreprocessor.h b/lib/TableGen/TGPreprocessor.h
deleted file mode 100644
index fe7e2a34bf..0000000000
--- a/lib/TableGen/TGPreprocessor.h
+++ /dev/null
@@ -1,52 +0,0 @@
-//===- TGPreprocessor.h - Preprocessor for TableGen Files -------*- C++ -*-===//
-//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
-//
-//===----------------------------------------------------------------------===//
-//
-// This class represents the Preprocessor for tablegen files.
-//
-//===----------------------------------------------------------------------===//
-
-#ifndef TGPREPROCESSOR_H
-#define TGPREPROCESSOR_H
-
-#include <vector>
-
-namespace llvm {
-class MemoryBuffer;
-class SourceMgr;
-class tool_output_file;
-
-class TGPPLexer;
-class TGPPRange;
-class TGPPRecord;
-
-typedef std::vector<TGPPRecord> TGPPRecords;
-
-class TGPreprocessor {
- SourceMgr &SrcMgr;
- tool_output_file &Out;
-
- TGPPLexer *Lexer;
- TGPPRecords *CurRecords;
-
- bool ParseBlock(bool TopLevel);
- bool ParseForLoop();
- bool ParseRange(TGPPRange *Range);
-
-public:
- TGPreprocessor(SourceMgr &SM, tool_output_file &O)
- : SrcMgr(SM), Out(O), Lexer(0), CurRecords(0) {
- }
-
- /// PreprocessFile - Main entrypoint for preprocess a tblgen file. These
- /// preprocess routines return true on error, or false on success.
- bool PreprocessFile();
-};
-} // namespace llvm
-
-#endif /* TGPREPROCESSOR_H */