aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-05-25 03:43:17 +0000
committerZachary Turner <zturner@google.com>2016-05-25 03:43:17 +0000
commit85ed80b9e69787452b4c78e37f38e2080b5b87fc (patch)
tree44b413e079629f59bb640c5dfa2a96f47c9eb689 /llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp
parent2487f19258f721915709b902ac178f74bf560574 (diff)
downloadllvm-85ed80b9e69787452b4c78e37f38e2080b5b87fc.zip
llvm-85ed80b9e69787452b4c78e37f38e2080b5b87fc.tar.gz
llvm-85ed80b9e69787452b4c78e37f38e2080b5b87fc.tar.bz2
[llvm-pdbdump] Dump stream summary list.
Try to figure out what each stream is, and dump its name. This gives us a better picture of what streams we still don't understand. llvm-svn: 270653
Diffstat (limited to 'llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp')
-rw-r--r--llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp b/llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp
index b3bd94c..202e717 100644
--- a/llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp
+++ b/llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp
@@ -127,6 +127,11 @@ Error NameMap::load(StreamReader &Stream) {
return Error::success();
}
+iterator_range<StringMapConstIterator<uint32_t>> NameMap::entries() const {
+ return llvm::make_range<StringMapConstIterator<uint32_t>>(Mapping.begin(),
+ Mapping.end());
+}
+
bool NameMap::tryGetValue(StringRef Name, uint32_t &Value) const {
auto Iter = Mapping.find(Name);
if (Iter == Mapping.end())