[cfe-commits] r173410 - /cfe/trunk/lib/Frontend/CompilerInvocation.cpp

Daniel Dunbar daniel at zuster.org
Thu Jan 24 17:50:34 PST 2013


Author: ddunbar
Date: Thu Jan 24 19:50:34 2013
New Revision: 173410

URL: http://llvm.org/viewvc/llvm-project?rev=173410&view=rev
Log:
[Frontend] The -iwithprefix option belongs in the After category, according to
GCC docs.
 - Found by inspection.

Modified:
    cfe/trunk/lib/Frontend/CompilerInvocation.cpp

Modified: cfe/trunk/lib/Frontend/CompilerInvocation.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Frontend/CompilerInvocation.cpp?rev=173410&r1=173409&r2=173410&view=diff
==============================================================================
--- cfe/trunk/lib/Frontend/CompilerInvocation.cpp (original)
+++ cfe/trunk/lib/Frontend/CompilerInvocation.cpp Thu Jan 24 19:50:34 2013
@@ -835,7 +835,7 @@
     IsIndexHeaderMap = false;
   }
 
-  // Add -iprefix/-iwith-prefix/-iwithprefixbefore options.
+  // Add -iprefix/-iwithprefix/-iwithprefixbefore options.
   StringRef Prefix = ""; // FIXME: This isn't the correct default prefix.
   for (arg_iterator it = Args.filtered_begin(OPT_iprefix, OPT_iwithprefix,
                                              OPT_iwithprefixbefore),
@@ -845,7 +845,7 @@
       Prefix = A->getValue();
     else if (A->getOption().matches(OPT_iwithprefix))
       Opts.AddPath(Prefix.str() + A->getValue(),
-                   frontend::System, false, false, false);
+                   frontend::After, false, false, false);
     else
       Opts.AddPath(Prefix.str() + A->getValue(),
                    frontend::Angled, false, false, false);





More information about the cfe-commits mailing list