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

Unified Diff: utils/TableGen/TableGen.cpp

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 | « utils/TableGen/TGParser.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « utils/TableGen/TGParser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698