[cfe-commits] r67423 - /cfe/trunk/lib/Lex/PTHLexer.cpp
Ted Kremenek
kremenek at apple.com
Fri Mar 20 17:15:11 PDT 2009
Author: kremenek
Date: Fri Mar 20 19:15:11 2009
New Revision: 67423
URL: http://llvm.org/viewvc/llvm-project?rev=67423&view=rev
Log:
Allow PTH files with no identifiers.
Modified:
cfe/trunk/lib/Lex/PTHLexer.cpp
Modified: cfe/trunk/lib/Lex/PTHLexer.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/PTHLexer.cpp?rev=67423&r1=67422&r2=67423&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/PTHLexer.cpp (original)
+++ cfe/trunk/lib/Lex/PTHLexer.cpp Fri Mar 20 19:15:11 2009
@@ -675,11 +675,6 @@
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);
More information about the cfe-commits
mailing list