summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2018-03-22 17:37:28 +0000
committerZachary Turner <zturner@google.com>2018-03-22 17:37:28 +0000
commit71d36ad9f919d420beed28f6467123acb621f486 (patch)
treea4b5946cfb6f6640b98ebedbe169926f7624590d /llvm/lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp
parent6432afe50c4b3afc4beb99b9392e8a1967bd6838 (diff)
downloadbcm5719-llvm-71d36ad9f919d420beed28f6467123acb621f486.tar.gz
bcm5719-llvm-71d36ad9f919d420beed28f6467123acb621f486.zip
[Codeview/PDB] Rename some methods for clarity.
NFC, this just renames some methods to better express what they do, and also adds a few helper methods to add some symmetry to the API in a few places (for example there was a getStringFromId but not a getIdFromString method in the string table). llvm-svn: 328221
Diffstat (limited to 'llvm/lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp')
-rw-r--r--llvm/lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp
index ccc20eb7488..0f155a95d60 100644
--- a/llvm/lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp
+++ b/llvm/lib/DebugInfo/CodeView/DebugChecksumsSubsection.cpp
@@ -109,7 +109,7 @@ Error DebugChecksumsSubsection::commit(BinaryStreamWriter &Writer) const {
}
uint32_t DebugChecksumsSubsection::mapChecksumOffset(StringRef FileName) const {
- uint32_t Offset = Strings.getStringId(FileName);
+ uint32_t Offset = Strings.getIdForString(FileName);
auto Iter = OffsetMap.find(Offset);
assert(Iter != OffsetMap.end());
return Iter->second;
OpenPOWER on IntegriCloud