[dsymutil] Add function size to the debug map.
authorFrederic Riss <friss@apple.com>
Sun, 15 Mar 2015 01:29:30 +0000 (01:29 +0000)
committerFrederic Riss <friss@apple.com>
Sun, 15 Mar 2015 01:29:30 +0000 (01:29 +0000)
commite7a356409df286da35cc70c968b7cbb6e5a5f84f
tree4a415da5c30864d31c0ad4886842b110baed7501
parent40510a07cf8b104a395fc469df3d39ee1a5c840f
[dsymutil] Add function size to the debug map.

The debug map embedded by ld64 in binaries conatins function sizes.
These sizes are less precise than the ones given by the debug information
(byte granularity vs linker atom granularity), but they might cover code
that is referenced in the line table but not in the DIE tree (that might
very well be a compiler bug that I need to investigate later).
Anyway, extracting that information is necessary to be able to mimic
dsymutil's behavior exactly.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232300 91177308-0d34-0410-b5e6-96231b3b80d8
test/tools/dsymutil/debug-map-parsing.test
tools/dsymutil/DebugMap.cpp
tools/dsymutil/DebugMap.h
tools/dsymutil/MachODebugMapParser.cpp