summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARFDebugArangeSet.h
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2014-04-28 22:27:46 +0000
committerAlexey Samsonov <samsonov@google.com>2014-04-28 22:27:46 +0000
commitfee0ee24c8b2488be0d7c34e33fca4ddf385b18a (patch)
treedb90fca9c155bf76282dad74e5eab20bafed8c59 /llvm/lib/DebugInfo/DWARFDebugArangeSet.h
parentd67ffe8b7377ed8e39ef2be4ab088ec28159fb9e (diff)
downloadbcm5719-llvm-fee0ee24c8b2488be0d7c34e33fca4ddf385b18a.tar.gz
bcm5719-llvm-fee0ee24c8b2488be0d7c34e33fca4ddf385b18a.zip
[DWARF parser] Simplify DWARFDebugAranges generation.
There is no need to keep the whole contents of .debug_aranges section in memory when we build address ranges table. Memory optimization that used to be in this code (precalculate the size of vector of ranges before filling it) is not really needed - later we will compact and resize this vector anyway. llvm-svn: 207457
Diffstat (limited to 'llvm/lib/DebugInfo/DWARFDebugArangeSet.h')
-rw-r--r--llvm/lib/DebugInfo/DWARFDebugArangeSet.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/llvm/lib/DebugInfo/DWARFDebugArangeSet.h b/llvm/lib/DebugInfo/DWARFDebugArangeSet.h
index c18b3c5e504..d6c2d8b27c5 100644
--- a/llvm/lib/DebugInfo/DWARFDebugArangeSet.h
+++ b/llvm/lib/DebugInfo/DWARFDebugArangeSet.h
@@ -63,7 +63,6 @@ public:
return desc_iterator_range(ArangeDescriptors.begin(),
ArangeDescriptors.end());
}
- uint32_t getNumDescriptors() const { return ArangeDescriptors.size(); }
};
}
OpenPOWER on IntegriCloud