summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2012-10-22 23:59:45 +0000
committerDouglas Gregor <dgregor@apple.com>2012-10-22 23:59:45 +0000
commitc2d984c82384c6d264cc27c2dc4fbf09513912cb (patch)
tree0a02e3b4740042cd9579cbe56185ae4acdcbb803 /clang/lib/Frontend/CompilerInvocation.cpp
parent0f4871d48702471a4d6832432db393124fd1e608 (diff)
downloadbcm5719-llvm-c2d984c82384c6d264cc27c2dc4fbf09513912cb.tar.gz
bcm5719-llvm-c2d984c82384c6d264cc27c2dc4fbf09513912cb.zip
Handle implicitly-included PCH files the same way as
implicitly-included PTH files during initialization, delaying the mapping down to the "original source file" until after later in the initialization process. llvm-svn: 166452
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index 1de547d9b40..83248454aa3 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -2224,16 +2224,7 @@ static void ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args,
OPT_include_pth),
ie = Args.filtered_end(); it != ie; ++it) {
const Arg *A = *it;
- // PCH is handled specially, we need to extra the original include path.
- if (A->getOption().matches(OPT_include_pch)) {
- std::string OriginalFile =
- ASTReader::getOriginalSourceFile(A->getValue(Args), FileMgr, Diags);
- if (OriginalFile.empty())
- continue;
-
- Opts.Includes.push_back(OriginalFile);
- } else
- Opts.Includes.push_back(A->getValue(Args));
+ Opts.Includes.push_back(A->getValue(Args));
}
for (arg_iterator it = Args.filtered_begin(OPT_chain_include),
OpenPOWER on IntegriCloud