aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-05 16:36:52 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-02-05 16:36:52 +0000
commit48b72d81c8968f3d342557582db986a60aef2c54 (patch)
tree06af75dac2898c6c3a52ed3132d9facb80921462 /clang/lib/Frontend/CompilerInvocation.cpp
parentb76de88288b32ce192a03cd7b387bf0137fbd436 (diff)
downloadllvm-48b72d81c8968f3d342557582db986a60aef2c54.zip
llvm-48b72d81c8968f3d342557582db986a60aef2c54.tar.gz
llvm-48b72d81c8968f3d342557582db986a60aef2c54.tar.bz2
[frontend] Don't put a PCH/PTH filename into the set of includes in the preprocessor options;
since only one of them is allowed in command-line, process them separately. Otherwise, if more than one is specified in the command-line, one is processed normally and the others are going to be treated and included as header files. Related to radar://13140508 llvm-svn: 174385
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index a2b28bc..a4597fd 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1345,8 +1345,7 @@ static void ParsePreprocessorArgs(PreprocessorOptions &Opts, ArgList &Args,
Opts.MacroIncludes = Args.getAllArgValues(OPT_imacros);
// Add the ordered list of -includes.
- for (arg_iterator it = Args.filtered_begin(OPT_include, OPT_include_pch,
- OPT_include_pth),
+ for (arg_iterator it = Args.filtered_begin(OPT_include),
ie = Args.filtered_end(); it != ie; ++it) {
const Arg *A = *it;
Opts.Includes.push_back(A->getValue());