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 | 8f0583daa2864318537a61b12e71c3264c227738 (patch) | |
tree | 9b5bc2e69bf0e820f92b5d8d5b42206f431dec8c /clang/lib/Lex/PTHLexer.cpp | |
parent | 5769c3dffd6d7b1d7684c93eaea71e1277846e26 (diff) | |
download | bcm5719-llvm-8f0583daa2864318537a61b12e71c3264c227738.tar.gz bcm5719-llvm-8f0583daa2864318537a61b12e71c3264c227738.zip |
simplify the cache miss handling code, eliminating CacheMissing.
llvm-svn: 120038
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index 0dd30f6d701..ed068675fe3 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/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 |