summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/PDB/Native
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/PDB/Native
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/PDB/Native')
-rw-r--r--llvm/lib/DebugInfo/PDB/Native/PDBStringTableBuilder.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Native/PDBStringTableBuilder.cpp b/llvm/lib/DebugInfo/PDB/Native/PDBStringTableBuilder.cpp
index cdd23f8df52..5020423f6ff 100644
--- a/llvm/lib/DebugInfo/PDB/Native/PDBStringTableBuilder.cpp
+++ b/llvm/lib/DebugInfo/PDB/Native/PDBStringTableBuilder.cpp
@@ -25,6 +25,14 @@ uint32_t PDBStringTableBuilder::insert(StringRef S) {
return Strings.insert(S);
}
+uint32_t PDBStringTableBuilder::getIdForString(StringRef S) const {
+ return Strings.getIdForString(S);
+}
+
+StringRef PDBStringTableBuilder::getStringForId(uint32_t Id) const {
+ return Strings.getStringForId(Id);
+}
+
static uint32_t computeBucketCount(uint32_t NumStrings) {
// The /names stream is basically an on-disk open-addressing hash table.
// Hash collisions are resolved by linear probing. We cannot make
OpenPOWER on IntegriCloud