diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-13 21:47:32 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-09-13 21:47:32 +0000 |
commit | 4aa3fea8b13b91800c908f8e7d74fad96adba69a (patch) | |
tree | 52713ed62b71874cabdd00b934cb7dbb64a75665 /lib/DebugInfo/DWARFDebugAbbrev.cpp | |
parent | 13b8d1e396bc802038332d894d78b999ec067069 (diff) |
Style & indentation tweaks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugAbbrev.cpp')
-rw-r--r-- | lib/DebugInfo/DWARFDebugAbbrev.cpp | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/lib/DebugInfo/DWARFDebugAbbrev.cpp b/lib/DebugInfo/DWARFDebugAbbrev.cpp index 68769f05cd..a11ae3f290 100644 --- a/lib/DebugInfo/DWARFDebugAbbrev.cpp +++ b/lib/DebugInfo/DWARFDebugAbbrev.cpp @@ -32,13 +32,11 @@ bool DWARFAbbreviationDeclarationSet::extract(DataExtractor data, return beginOffset != *offset_ptr; } - void DWARFAbbreviationDeclarationSet::dump(raw_ostream &OS) const { for (unsigned i = 0, e = Decls.size(); i != e; ++i) Decls[i].dump(OS); } - const DWARFAbbreviationDeclaration* DWARFAbbreviationDeclarationSet::getAbbreviationDeclaration(uint32_t abbrCode) const { @@ -58,8 +56,8 @@ DWARFAbbreviationDeclarationSet::getAbbreviationDeclaration(uint32_t abbrCode) } DWARFDebugAbbrev::DWARFDebugAbbrev() : - m_abbrevCollMap(), - m_prev_abbr_offset_pos(m_abbrevCollMap.end()) {} + AbbrevCollMap(), + PrevAbbrOffsetPos(AbbrevCollMap.end()) {} void DWARFDebugAbbrev::parse(DataExtractor data) { @@ -70,21 +68,21 @@ void DWARFDebugAbbrev::parse(DataExtractor data) { DWARFAbbreviationDeclarationSet abbrevDeclSet; if (abbrevDeclSet.extract(data, &offset)) - m_abbrevCollMap[initial_cu_offset] = abbrevDeclSet; + AbbrevCollMap[initial_cu_offset] = abbrevDeclSet; else break; } - m_prev_abbr_offset_pos = m_abbrevCollMap.end(); + PrevAbbrOffsetPos = AbbrevCollMap.end(); } void DWARFDebugAbbrev::dump(raw_ostream &OS) const { - if (m_abbrevCollMap.empty()) { + if (AbbrevCollMap.empty()) { OS << "< EMPTY >\n"; return; } DWARFAbbreviationDeclarationCollMapConstIter pos; - for (pos = m_abbrevCollMap.begin(); pos != m_abbrevCollMap.end(); ++pos) { + for (pos = AbbrevCollMap.begin(); pos != AbbrevCollMap.end(); ++pos) { OS << format("Abbrev table for offset: 0x%8.8x\n", pos->first); pos->second.dump(OS); } @@ -92,17 +90,17 @@ void DWARFDebugAbbrev::dump(raw_ostream &OS) const { const DWARFAbbreviationDeclarationSet* DWARFDebugAbbrev::getAbbreviationDeclarationSet(uint64_t cu_abbr_offset) const { - DWARFAbbreviationDeclarationCollMapConstIter end = m_abbrevCollMap.end(); + DWARFAbbreviationDeclarationCollMapConstIter end = AbbrevCollMap.end(); DWARFAbbreviationDeclarationCollMapConstIter pos; - if (m_prev_abbr_offset_pos != end && - m_prev_abbr_offset_pos->first == cu_abbr_offset) { - return &(m_prev_abbr_offset_pos->second); + if (PrevAbbrOffsetPos != end && + PrevAbbrOffsetPos->first == cu_abbr_offset) { + return &(PrevAbbrOffsetPos->second); } else { - pos = m_abbrevCollMap.find(cu_abbr_offset); - m_prev_abbr_offset_pos = pos; + pos = AbbrevCollMap.find(cu_abbr_offset); + PrevAbbrOffsetPos = pos; } - if (pos != m_abbrevCollMap.end()) + if (pos != AbbrevCollMap.end()) return &(pos->second); return NULL; } |