From: Daniel Dunbar Date: Fri, 25 Jan 2013 01:50:34 +0000 (+0000) Subject: [Frontend] The -iwithprefix option belongs in the After category, according to X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9c57e91816d6435e0a6c33f5ea4642235bcfa25;p=platform%2Fupstream%2Fllvm.git [Frontend] The -iwithprefix option belongs in the After category, according to GCC docs. - Found by inspection. llvm-svn: 173410 --- diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp index e135ad4..52707db 100644 --- a/clang/lib/Frontend/CompilerInvocation.cpp +++ b/clang/lib/Frontend/CompilerInvocation.cpp @@ -835,7 +835,7 @@ static void ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args) { 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 @@ static void ParseHeaderSearchArgs(HeaderSearchOptions &Opts, ArgList &Args) { 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);