summaryrefslogtreecommitdiff
path: root/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
commitdc9a4f73917515d46c858fda38a88e1392060993 (patch)
treed8177b2e68963a68a4b69d61cdfb36dd4c155c74 /lib/DebugInfo/DWARFDebugArangeSet.h
parent686bd64d0c269ff948c029d6bf94af7b87d00213 (diff)
downloadllvm-dc9a4f73917515d46c858fda38a88e1392060993.tar.gz
llvm-dc9a4f73917515d46c858fda38a88e1392060993.tar.bz2
llvm-dc9a4f73917515d46c858fda38a88e1392060993.tar.xz
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207457 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFDebugArangeSet.h')
-rw-r--r--lib/DebugInfo/DWARFDebugArangeSet.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/DebugInfo/DWARFDebugArangeSet.h b/lib/DebugInfo/DWARFDebugArangeSet.h
index c18b3c5e50..d6c2d8b27c 100644
--- a/lib/DebugInfo/DWARFDebugArangeSet.h
+++ b/lib/DebugInfo/DWARFDebugArangeSet.h
@@ -63,7 +63,6 @@ public:
return desc_iterator_range(ArangeDescriptors.begin(),
ArangeDescriptors.end());
}
- uint32_t getNumDescriptors() const { return ArangeDescriptors.size(); }
};
}