From 85ed80b9e69787452b4c78e37f38e2080b5b87fc Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Wed, 25 May 2016 03:43:17 +0000 Subject: [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 --- llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'llvm/lib/DebugInfo/PDB/Raw/NameMap.cpp') 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> NameMap::entries() const { + return llvm::make_range>(Mapping.begin(), + Mapping.end()); +} + bool NameMap::tryGetValue(StringRef Name, uint32_t &Value) const { auto Iter = Mapping.find(Name); if (Iter == Mapping.end()) -- cgit v1.1