Index: utils/TableGen/TableGen.cpp |
=================================================================== |
--- utils/TableGen/TableGen.cpp (revision 138929) |
+++ utils/TableGen/TableGen.cpp (working copy) |
@@ -187,6 +187,10 @@ |
IncludeDirs("I", cl::desc("Directory of include files"), |
cl::value_desc("directory"), cl::Prefix); |
+ cl::list<std::string> |
+ PreProcDefines("D", cl::desc("Tablegen preprocessor defines to include"), |
+ cl::value_desc("symbol"), cl::Prefix); |
+ |
cl::opt<std::string> |
ClangComponent("clang-component", |
cl::desc("Only use warnings from specified component"), |
@@ -219,7 +223,7 @@ |
// it later. |
SrcMgr.setIncludeDirs(IncludeDirs); |
- TGParser Parser(SrcMgr, Records); |
+ TGParser Parser(SrcMgr, Records, PreProcDefines); |
if (Parser.ParseFile()) |
return 1; |