Update Symtab::InitAddressIndexes so that computed symbol sizes
authorJason Molenda <jmolenda@apple.com>
Wed, 13 Apr 2016 04:32:49 +0000 (04:32 +0000)
committerJason Molenda <jmolenda@apple.com>
Wed, 13 Apr 2016 04:32:49 +0000 (04:32 +0000)
commit17423dd4221e59f04585592bae6ab0c001c36ebe
tree18e9a59a6f4a275c3d1867ca2e800b0c467bba53
parent939b084bd7e74d4cfcd69f04d2728bf722c4a9ef
Update Symtab::InitAddressIndexes so that computed symbol sizes
will not exceed the bounds of their Section.  This is addressing a
problem where a file had a large space between two sections that
were not used by this module - the last symbol in the text section
had an enormous size because the distance between that and the first
symbol in the data section were used to compute the size.

http://reviews.llvm.org/D19004
<rdar://problem/25227945>

llvm-svn: 266165
lldb/include/lldb/Core/RangeMap.h
lldb/source/Symbol/Symtab.cpp