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/Frontend/PCHWriter.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/Frontend/PCHWriter.cpp')
-rw-r--r-- | clang/lib/Frontend/PCHWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Frontend/PCHWriter.cpp b/clang/lib/Frontend/PCHWriter.cpp index 602f9c9efba..dbe1e9933e8 100644 --- a/clang/lib/Frontend/PCHWriter.cpp +++ b/clang/lib/Frontend/PCHWriter.cpp @@ -1594,7 +1594,7 @@ public: std::pair<unsigned,unsigned> EmitKeyDataLength(llvm::raw_ostream& Out, const IdentifierInfo* II, pch::IdentID ID) { - unsigned KeyLen = strlen(II->getName()) + 1; + unsigned KeyLen = II->getLength() + 1; unsigned DataLen = 4; // 4 bytes for the persistent ID << 1 if (isInterestingIdentifier(II)) { DataLen += 2; // 2 bytes for builtin ID, flags @@ -1619,7 +1619,7 @@ public: // Record the location of the key data. This is used when generating // the mapping from persistent IDs to strings. Writer.SetIdentifierOffset(II, Out.tell()); - Out.write(II->getName(), KeyLen); + Out.write(II->getNameStart(), KeyLen); } void EmitData(llvm::raw_ostream& Out, const IdentifierInfo* II, |