summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2013-01-25 01:50:34 +0000
committerDaniel Dunbar <daniel@zuster.org>2013-01-25 01:50:34 +0000
commitc9c57e91816d6435e0a6c33f5ea4642235bcfa25 (patch)
tree383cb754767745cfd57303e24cb27bfd100ba9f0 /clang/lib/Frontend/CompilerInvocation.cpp
parentae4feb62e075190c8754c778a24f62f2e36e583f (diff)
downloadbcm5719-llvm-c9c57e91816d6435e0a6c33f5ea4642235bcfa25.tar.gz
bcm5719-llvm-c9c57e91816d6435e0a6c33f5ea4642235bcfa25.zip
[Frontend] The -iwithprefix option belongs in the After category, according to
GCC docs. - Found by inspection. llvm-svn: 173410
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index e135ad48bd4..52707dbd779 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);
OpenPOWER on IntegriCloud