From 3ae9cf5ba4934bae9576e9aaabf4f401901466f8 Mon Sep 17 00:00:00 2001 From: Che-Liang Chiou Date: Sat, 8 Oct 2011 12:39:26 +0000 Subject: 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 --- lib/TableGen/TGPreprocessor.h | 52 ------------------------------------------- 1 file changed, 52 deletions(-) delete mode 100644 lib/TableGen/TGPreprocessor.h (limited to 'lib/TableGen/TGPreprocessor.h') 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 - -namespace llvm { -class MemoryBuffer; -class SourceMgr; -class tool_output_file; - -class TGPPLexer; -class TGPPRange; -class TGPPRecord; - -typedef std::vector 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 */ -- cgit v1.2.3-70-g09d2