[cfe-commits] r89854 - /cfe/trunk/lib/Driver/CC1Options.cpp
Daniel Dunbar
daniel at zuster.org
Wed Nov 25 02:14:37 PST 2009
Author: ddunbar
Date: Wed Nov 25 04:14:37 2009
New Revision: 89854
URL: http://llvm.org/viewvc/llvm-project?rev=89854&view=rev
Log:
Add clang -cc1 parsing for preprocessor output options (-E).
Modified:
cfe/trunk/lib/Driver/CC1Options.cpp
Modified: cfe/trunk/lib/Driver/CC1Options.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/CC1Options.cpp?rev=89854&r1=89853&r2=89854&view=diff
==============================================================================
--- cfe/trunk/lib/Driver/CC1Options.cpp (original)
+++ cfe/trunk/lib/Driver/CC1Options.cpp Wed Nov 25 04:14:37 2009
@@ -230,6 +230,12 @@
static void ParsePreprocessorOutputArgs(PreprocessorOutputOptions &Opts,
ArgList &Args) {
+ using namespace cc1options;
+ Opts.ShowCPP = !Args.hasArg(OPT_dM);
+ Opts.ShowMacros = Args.hasArg(OPT_dM) || Args.hasArg(OPT_dD);
+ Opts.ShowLineMarkers = !Args.hasArg(OPT_P);
+ Opts.ShowComments = Args.hasArg(OPT_C);
+ Opts.ShowMacroComments = Args.hasArg(OPT_CC);
}
static void ParseTargetArgs(TargetOptions &Opts, ArgList &Args) {
More information about the cfe-commits
mailing list