summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-03-21 00:15:11 +0000
committerTed Kremenek <kremenek@apple.com>2009-03-21 00:15:11 +0000
commitb12f24116d8d356b750ba0a11d9f80ea696fe9fd (patch)
tree59e763403202408d4ea9ab5dcd44fbbf03cae4ac
parent9b9586a5aeb95fd2b7190ae29d4046dc4fad7a7e (diff)
downloadbcm5719-llvm-b12f24116d8d356b750ba0a11d9f80ea696fe9fd.tar.gz
bcm5719-llvm-b12f24116d8d356b750ba0a11d9f80ea696fe9fd.zip
Allow PTH files with no identifiers.
llvm-svn: 67423
-rw-r--r--clang/lib/Lex/PTHLexer.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp
index e62accb6425..b5f5afd81ab 100644
--- a/clang/lib/Lex/PTHLexer.cpp
+++ b/clang/lib/Lex/PTHLexer.cpp
@@ -675,11 +675,6 @@ PTHManager* PTHManager::Create(const std::string& file, Diagnostic* Diags) {
llvm::OwningPtr<PTHStringIdLookup> SL(PTHStringIdLookup::Create(StringIdTable,
BufBeg));
- if (!FL->isEmpty() && SL->isEmpty()) {
- InvalidPTH(Diags, "PTH file contains no identifiers.");
- return 0;
- }
-
// Get the location of the spelling cache.
const unsigned char* spellingBaseOffset = PrologueOffset + sizeof(uint32_t)*3;
const unsigned char* spellingBase = BufBeg + ReadLE32(spellingBaseOffset);
OpenPOWER on IntegriCloud