diff options
author | Chris Lattner <sabre@nondot.org> | 2010-11-23 20:05:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-11-23 20:05:15 +0000 |
commit | d6f611198089b78e32d3a15fe8bc986204aee1aa (patch) | |
tree | d6395cf05d36ad6d8d5bba6a418b0f8396e00928 /lib/Lex/PTHLexer.cpp | |
parent | 11aa4b03b054cb9d3c201bba5632241145865e29 (diff) |
simplify the cache miss handling code, eliminating CacheMissing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@120038 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/PTHLexer.cpp')
-rw-r--r-- | lib/Lex/PTHLexer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Lex/PTHLexer.cpp b/lib/Lex/PTHLexer.cpp index 0dd30f6d70..ed068675fe 100644 --- a/lib/Lex/PTHLexer.cpp +++ b/lib/Lex/PTHLexer.cpp @@ -26,7 +26,6 @@ #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/StringMap.h" #include "llvm/Support/MemoryBuffer.h" -#include <sys/stat.h> using namespace clang; using namespace clang::io; @@ -690,14 +689,14 @@ public: const PTHStatData &Data = *I; if (!Data.hasStat) - return CacheHitMissing; + return CacheMissing; StatBuf.st_ino = Data.ino; StatBuf.st_dev = Data.dev; StatBuf.st_mtime = Data.mtime; StatBuf.st_mode = Data.mode; StatBuf.st_size = Data.size; - return CacheHitExists; + return CacheExists; } }; } // end anonymous namespace |