Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(228)

Unified Diff: utils/TableGen/TGLexer.h

Issue 7792066: [llvm] Conditionally include target intrinsics, based on --enable-target Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: cleanups Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll ('k') | utils/TableGen/TGLexer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/TableGen/TGLexer.h
===================================================================
--- utils/TableGen/TGLexer.h (revision 138929)
+++ utils/TableGen/TGLexer.h (working copy)
@@ -74,9 +74,13 @@
int CurBuffer;
/// Dependencies - This is the list of all included files.
std::vector<std::string> Dependencies;
-
+
+ /// PreProcDefines - This holds a list of TableGen defines (similar in
+ /// spirit to C pre-processor defines).
+ std::vector<std::string> PreProcDefines;
+
public:
- TGLexer(SourceMgr &SrcMgr);
+ TGLexer(SourceMgr &SrcMgr, std::vector<std::string> PreProcDefines);
~TGLexer() {}
tgtok::TokKind Lex() {
@@ -101,7 +105,9 @@
}
SMLoc getLoc() const;
-
+
+ bool hasPreProcDefine(const std::string &Symbol) const;
+
private:
/// LexToken - Read the next token and return its code.
tgtok::TokKind LexToken();
@@ -113,6 +119,8 @@
bool SkipCComment();
tgtok::TokKind LexIdentifier();
bool LexInclude();
+ bool LexIncludeIf();
+ bool AddIncludeFile(const std::string &Filename);
tgtok::TokKind LexString();
tgtok::TokKind LexVarName();
tgtok::TokKind LexNumber();
« no previous file with comments | « test/Transforms/ScalarRepl/2006-11-07-InvalidArrayPromote.ll ('k') | utils/TableGen/TGLexer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698