summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-12-03 09:13:06 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-12-03 09:13:06 +0000
commit3b95148ce1c73b1bda0b1180af3e91f0623ce2da (patch)
tree20b30400c5cf928791cece126b5c72908b56d504 /clang/lib/Frontend/CompilerInvocation.cpp
parentacadc55d4e7fb58a51f03108dc9e9a2d44aaa1f2 (diff)
downloadbcm5719-llvm-3b95148ce1c73b1bda0b1180af3e91f0623ce2da.tar.gz
bcm5719-llvm-3b95148ce1c73b1bda0b1180af3e91f0623ce2da.zip
Switch PCHReader::getOriginalSourceFile to use proper diagnostics.
llvm-svn: 90434
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index ccf60fb9e38..2ecbcfe862e 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1205,11 +1205,9 @@ static void ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args,
// PCH is handled specially, we need to extra the original include path.
if (it->getOption().matches(OPT_include_pch)) {
std::string OriginalFile =
- PCHReader::getOriginalSourceFile(it->getValue(Args));
-
- // FIXME: Don't fail like this.
+ PCHReader::getOriginalSourceFile(it->getValue(Args), Diags);
if (OriginalFile.empty())
- exit(1);
+ continue;
Opts.Includes.push_back(OriginalFile);
} else
OpenPOWER on IntegriCloud