From c72c57c9e9b69944e3e009cd5e209634839581d3 Mon Sep 17 00:00:00 2001 From: dim <dim@FreeBSD.org> Date: Mon, 8 Apr 2013 18:45:10 +0000 Subject: Vendor import of clang trunk r178860: http://llvm.org/svn/llvm-project/cfe/trunk@178860 --- lib/Lex/PTHLexer.cpp | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'lib/Lex/PTHLexer.cpp') diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index b167172..e8f43f7 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -11,17 +11,16 @@ // //===----------------------------------------------------------------------===// -#include "clang/Basic/TokenKinds.h" +#include "clang/Lex/PTHLexer.h" #include "clang/Basic/FileManager.h" #include "clang/Basic/FileSystemStatCache.h" #include "clang/Basic/IdentifierTable.h" #include "clang/Basic/OnDiskHashTable.h" +#include "clang/Basic/TokenKinds.h" #include "clang/Lex/LexDiagnostic.h" -#include "clang/Lex/PTHLexer.h" -#include "clang/Lex/Preprocessor.h" #include "clang/Lex/PTHManager.h" -#include "clang/Lex/Token.h" #include "clang/Lex/Preprocessor.h" +#include "clang/Lex/Token.h" #include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringMap.h" @@ -679,13 +678,13 @@ public: ~PTHStatCache() {} LookupResult getStat(const char *Path, struct stat &StatBuf, - int *FileDescriptor) { + bool isFile, int *FileDescriptor) { // Do the lookup for the file's data in the PTH file. CacheTy::iterator I = Cache.find(Path); // If we don't get a hit in the PTH file just forward to 'stat'. if (I == Cache.end()) - return statChained(Path, StatBuf, FileDescriptor); + return statChained(Path, StatBuf, isFile, FileDescriptor); const PTHStatData &Data = *I; -- cgit v1.1