aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-26 02:13:54 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-26 02:13:54 +0000
commitcbc693579c444ad9888494c7589aa52563f79ab7 (patch)
treec3a3f482db44adf28962424e817ec050fbc95df3 /clang/lib/Frontend/CompilerInvocation.cpp
parent89288994139b720ac196a7e698c78731e3d3d2fe (diff)
downloadllvm-cbc693579c444ad9888494c7589aa52563f79ab7.zip
llvm-cbc693579c444ad9888494c7589aa52563f79ab7.tar.gz
llvm-cbc693579c444ad9888494c7589aa52563f79ab7.tar.bz2
Add clang -cc1 parsing for header search options.
llvm-svn: 89916
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 73593f6..092c0e2 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -302,13 +302,13 @@ static void HeaderSearchOptsToArgs(const HeaderSearchOptions &Opts,
/// User specified include entries.
for (unsigned i = 0, e = Opts.UserEntries.size(); i != e; ++i) {
const HeaderSearchOptions::Entry &E = Opts.UserEntries[i];
- if (E.IsFramework && (E.Group != frontend::Angled || E.IsUserSupplied))
+ if (E.IsFramework && (E.Group != frontend::Angled || !E.IsUserSupplied))
llvm::llvm_report_error("Invalid option set!");
if (E.IsUserSupplied) {
if (E.Group == frontend::After) {
Res.push_back("-idirafter");
} else if (E.Group == frontend::Quoted) {
- Res.push_back("-iquoted");
+ Res.push_back("-iquote");
} else if (E.Group == frontend::System) {
Res.push_back("-isystem");
} else {