llvm.org GIT mirror llvm / a9543aa
Fix a bug in DebugInfo lib, extend a comment for one of the methods git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159707 91177308-0d34-0410-b5e6-96231b3b80d8 Alexey Samsonov 7 years ago
2 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
238238
239239 const DWARFDebugInfoEntryMinimal*
240240 DWARFCompileUnit::getFunctionDIEForAddress(int64_t address) {
241 size_t n = extractDIEsIfNeeded(false);
242 for (size_t i = 0; i != n; i++) {
241 extractDIEsIfNeeded(false);
242 for (size_t i = 0, n = DieArray.size(); i != n; i++) {
243243 if (DieArray[i].addressRangeContainsAddress(this, address))
244244 return &DieArray[i];
245245 }
4242 const DWARFAbbreviationDeclarationSet *abbrevs);
4343
4444 /// extractDIEsIfNeeded - Parses a compile unit and indexes its DIEs if it
45 /// hasn't already been done.
45 /// hasn't already been done. Returns the number of DIEs parsed at this call.
4646 size_t extractDIEsIfNeeded(bool cu_die_only);
4747 void clear();
4848 void dump(raw_ostream &OS);