summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIECollection.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-10-01 20:48:32 +0000
committerGreg Clayton <gclayton@apple.com>2010-10-01 20:48:32 +0000
commitc93237c9913054aeb90e4764c070839befc0f029 (patch)
tree5520b8d760ac87733e62d70d9f76001e7676b8a8 /lldb/source/Plugins/SymbolFile/DWARF/DWARFDIECollection.cpp
parent6080da7a7962bbf9724646a5532655c382f3a76d (diff)
downloadbcm5719-llvm-c93237c9913054aeb90e4764c070839befc0f029.tar.gz
bcm5719-llvm-c93237c9913054aeb90e4764c070839befc0f029.zip
Fixed an issue where if a method funciton was asked to be parsed before
its containing class was parsed, we would crash. llvm-svn: 115343
Diffstat (limited to 'lldb/source/Plugins/SymbolFile/DWARF/DWARFDIECollection.cpp')
-rw-r--r--lldb/source/Plugins/SymbolFile/DWARF/DWARFDIECollection.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIECollection.cpp b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIECollection.cpp
index 60aac74ad86..1beb75d3364 100644
--- a/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIECollection.cpp
+++ b/lldb/source/Plugins/SymbolFile/DWARF/DWARFDIECollection.cpp
@@ -29,6 +29,12 @@ DWARFDIECollection::Insert(const DWARFDebugInfoEntry *die)
return true;
}
+void
+DWARFDIECollection::Append (const DWARFDebugInfoEntry *die)
+{
+ m_dies.push_back (die);
+}
+
const DWARFDebugInfoEntry *
DWARFDIECollection::GetDIEPtrAtIndex(uint32_t idx) const
{
OpenPOWER on IntegriCloud