diff options
author | Zachary Turner <zturner@google.com> | 2018-03-22 17:37:28 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2018-03-22 17:37:28 +0000 |
commit | 71d36ad9f919d420beed28f6467123acb621f486 (patch) | |
tree | a4b5946cfb6f6640b98ebedbe169926f7624590d /llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp | |
parent | 6432afe50c4b3afc4beb99b9392e8a1967bd6838 (diff) | |
download | llvm-71d36ad9f919d420beed28f6467123acb621f486.zip llvm-71d36ad9f919d420beed28f6467123acb621f486.tar.gz llvm-71d36ad9f919d420beed28f6467123acb621f486.tar.bz2 |
[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/DebugCrossImpSubsection.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp b/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp index 88c0076..9a3d3e3 100644 --- a/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp +++ b/llvm/lib/DebugInfo/CodeView/DebugCrossImpSubsection.cpp @@ -80,13 +80,13 @@ Error DebugCrossModuleImportsSubsection::commit( Ids.push_back(&M); std::sort(Ids.begin(), Ids.end(), [this](const T &L1, const T &L2) { - return Strings.getStringId(L1->getKey()) < - Strings.getStringId(L2->getKey()); + return Strings.getIdForString(L1->getKey()) < + Strings.getIdForString(L2->getKey()); }); for (const auto &Item : Ids) { CrossModuleImport Imp; - Imp.ModuleNameOffset = Strings.getStringId(Item->getKey()); + Imp.ModuleNameOffset = Strings.getIdForString(Item->getKey()); Imp.Count = Item->getValue().size(); if (auto EC = Writer.writeObject(Imp)) return EC; |