diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-10-18 20:26:12 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-10-18 20:26:12 +0000 |
commit | 2c422dc9ca678c374a7cde30e880db2b62bc333f (patch) | |
tree | cc828622678dc86050c611deff9c3d22712f2b7a /clang/lib/Lex/PTHLexer.cpp | |
parent | e175bb194171fdf0bf0b5051e957bc445b9f0011 (diff) | |
download | bcm5719-llvm-2c422dc9ca678c374a7cde30e880db2b62bc333f.tar.gz bcm5719-llvm-2c422dc9ca678c374a7cde30e880db2b62bc333f.zip |
Move clients to use IdentifierInfo::getNameStart() instead of getName()
llvm-svn: 84436
Diffstat (limited to 'clang/lib/Lex/PTHLexer.cpp')
-rw-r--r-- | clang/lib/Lex/PTHLexer.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/Lex/PTHLexer.cpp b/clang/lib/Lex/PTHLexer.cpp index 8ca1ec016fe..f17a5d93a91 100644 --- a/clang/lib/Lex/PTHLexer.cpp +++ b/clang/lib/Lex/PTHLexer.cpp @@ -96,14 +96,6 @@ LexNextToken: //===--------------------------------------==// // Process the token. //===--------------------------------------==// -#if 0 - SourceManager& SM = PP->getSourceManager(); - llvm::errs() << SM.getFileEntryForID(FileID)->getName() - << ':' << SM.getLogicalLineNumber(Tok.getLocation()) - << ':' << SM.getLogicalColumnNumber(Tok.getLocation()) - << '\n'; -#endif - if (TKind == tok::eof) { // Save the end-of-file token. EofToken = Tok; @@ -563,7 +555,7 @@ IdentifierInfo* PTHManager::LazilyCreateIdentifierInfo(unsigned PersistentID) { // Store the new IdentifierInfo in the cache. PerIDCache[PersistentID] = II; - assert(II->getName() && II->getName()[0] != '\0'); + assert(II->getNameStart() && II->getNameStart()[0] != '\0'); return II; } |