diff options
Diffstat (limited to 'include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h')
-rw-r--r-- | include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h b/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h index 67c4a2bb3e67..f732deef548c 100644 --- a/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h +++ b/include/llvm/DebugInfo/DWARF/DWARFDebugAbbrev.h @@ -23,6 +23,9 @@ class DWARFAbbreviationDeclarationSet { uint32_t FirstAbbrCode; std::vector<DWARFAbbreviationDeclaration> Decls; + typedef std::vector<DWARFAbbreviationDeclaration>::const_iterator + const_iterator; + public: DWARFAbbreviationDeclarationSet(); @@ -33,6 +36,14 @@ public: const DWARFAbbreviationDeclaration * getAbbreviationDeclaration(uint32_t AbbrCode) const; + const_iterator begin() const { + return Decls.begin(); + } + + const_iterator end() const { + return Decls.end(); + } + private: void clear(); }; @@ -53,6 +64,14 @@ public: void dump(raw_ostream &OS) const; void extract(DataExtractor Data); + DWARFAbbreviationDeclarationSetMap::const_iterator begin() const { + return AbbrDeclSets.begin(); + } + + DWARFAbbreviationDeclarationSetMap::const_iterator end() const { + return AbbrDeclSets.end(); + } + private: void clear(); }; |