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 | e013d685c6689ac7ae103ee88acf573422d1ed6a (patch) | |
tree | 9ce3af590d76d16bbedc754d3804f0b56e5c4883 /lib/Frontend/PCHWriter.cpp | |
parent | b5217efa5be2fd6be48d207267c8bcda6bf9206c (diff) |
Move clients to use IdentifierInfo::getNameStart() instead of getName()
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84436 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PCHWriter.cpp')
-rw-r--r-- | lib/Frontend/PCHWriter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/PCHWriter.cpp b/lib/Frontend/PCHWriter.cpp index 602f9c9efb..dbe1e9933e 100644 --- a/lib/Frontend/PCHWriter.cpp +++ b/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, |