diff options
author | Hans Wennborg <hans@hanshq.net> | 2014-06-13 20:59:54 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2014-06-13 20:59:54 +0000 |
commit | e50cec3759b80d9f44edede5ebf75d25d4a93088 (patch) | |
tree | b5eb917d3b1126937d069bd21115bf573360d3ea /clang/lib/Driver/Driver.cpp | |
parent | ba2b33b4fe37f1ea73bc632ecb12b430fa9b2eb7 (diff) | |
download | bcm5719-llvm-e50cec3759b80d9f44edede5ebf75d25d4a93088.tar.gz bcm5719-llvm-e50cec3759b80d9f44edede5ebf75d25d4a93088.zip |
Add support for the /EP argument to clang-cl
This maps the /EP argument to both -E and -P.
Patch by Ehsan Akhgari!
Differential Reviion: http://reviews.llvm.org/D4133
llvm-svn: 210935
Diffstat (limited to 'clang/lib/Driver/Driver.cpp')
-rw-r--r-- | clang/lib/Driver/Driver.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Driver/Driver.cpp b/clang/lib/Driver/Driver.cpp index 67e01224356..1a9de3aebf7 100644 --- a/clang/lib/Driver/Driver.cpp +++ b/clang/lib/Driver/Driver.cpp @@ -152,9 +152,10 @@ const { Arg *PhaseArg = nullptr; phases::ID FinalPhase; - // -{E,M,MM} and /P only run the preprocessor. + // -{E,EP,P,M,MM} only run the preprocessor. if (CCCIsCPP() || (PhaseArg = DAL.getLastArg(options::OPT_E)) || + (PhaseArg = DAL.getLastArg(options::OPT__SLASH_EP)) || (PhaseArg = DAL.getLastArg(options::OPT_M, options::OPT_MM)) || (PhaseArg = DAL.getLastArg(options::OPT__SLASH_P))) { FinalPhase = phases::Preprocess; |