From 0c69fd276063f80a39b885a60d7275391f9a314a Mon Sep 17 00:00:00 2001 From: Manuel Klimek Date: Tue, 26 Apr 2011 21:50:03 +0000 Subject: 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 --- clang/lib/Lex/HeaderMap.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'clang/lib/Lex/HeaderMap.cpp') diff --git a/clang/lib/Lex/HeaderMap.cpp b/clang/lib/Lex/HeaderMap.cpp index 90ed184..e102a6d 100644 --- a/clang/lib/Lex/HeaderMap.cpp +++ b/clang/lib/Lex/HeaderMap.cpp @@ -200,8 +200,7 @@ void HeaderMap::dump() const { /// LookupFile - Check to see if the specified relative filename is located in /// this HeaderMap. If so, open it and return its FileEntry. const FileEntry *HeaderMap::LookupFile( - llvm::StringRef Filename, FileManager &FM, - llvm::SmallVectorImpl *RawPath) const { + llvm::StringRef Filename, FileManager &FM) const { const HMapHeader &Hdr = getHeader(); unsigned NumBuckets = getEndianAdjustedWord(Hdr.NumBuckets); @@ -224,8 +223,6 @@ const FileEntry *HeaderMap::LookupFile( llvm::SmallString<1024> DestPath; DestPath += getString(B.Prefix); DestPath += getString(B.Suffix); - if (RawPath != NULL) - *RawPath = DestPath; return FM.getFile(DestPath.str()); } } -- cgit v1.1