summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PreprocessingRecord.cpp
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2011-04-26 21:50:03 +0000
committerManuel Klimek <klimek@google.com>2011-04-26 21:50:03 +0000
commit0c69fd276063f80a39b885a60d7275391f9a314a (patch)
tree5377e53043e7d28c3dec26cdeeb58228f11520d8 /clang/lib/Lex/PreprocessingRecord.cpp
parent1355bbdd11127d3cb98e81a38f4758f1e10a62ef (diff)
downloadbcm5719-llvm-0c69fd276063f80a39b885a60d7275391f9a314a.tar.gz
bcm5719-llvm-0c69fd276063f80a39b885a60d7275391f9a314a.zip
To be able to replay compilations we need to accurately remodel how
includes get resolved, especially when they are found relatively to another include file. We also try to get it working for framework includes, but that part of the code is untested, as I don't have a code base that uses it. llvm-svn: 130246
Diffstat (limited to 'clang/lib/Lex/PreprocessingRecord.cpp')
-rw-r--r--clang/lib/Lex/PreprocessingRecord.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Lex/PreprocessingRecord.cpp b/clang/lib/Lex/PreprocessingRecord.cpp
index b7f6e75c47c..9555611dc59 100644
--- a/clang/lib/Lex/PreprocessingRecord.cpp
+++ b/clang/lib/Lex/PreprocessingRecord.cpp
@@ -153,7 +153,8 @@ void PreprocessingRecord::InclusionDirective(
bool IsAngled,
const FileEntry *File,
clang::SourceLocation EndLoc,
- const llvm::SmallVectorImpl<char> &RawPath) {
+ llvm::StringRef SearchPath,
+ llvm::StringRef RelativePath) {
InclusionDirective::InclusionKind Kind = InclusionDirective::Include;
switch (IncludeTok.getIdentifierInfo()->getPPKeywordID()) {
OpenPOWER on IntegriCloud