OSDN Git Service

Split .debug_info section to compilation units.
authorDavid Srbecky <dsrbecky@google.com>
Tue, 14 Apr 2015 00:57:43 +0000 (01:57 +0100)
committerDavid Srbecky <dsrbecky@google.com>
Wed, 15 Apr 2015 00:53:42 +0000 (01:53 +0100)
commit799b8c4cba128d13bab63c28800d1eed4e3bd243
tree19f607698efe767fcd3e433a1ac252d3b24c97d9
parentedae94ab217d4ef3912cb89c20dae58001ceaec9
Split .debug_info section to compilation units.

This resolves old TODO in the code.  It is also very important
for performance and memory usage of any tools which might be
consuming the debug data.  Without this split, the tools
would be forced to decode (and probably store in memory) all of
debug data even for a simple query.  With this change it should
be easy to find only the relevant compilation unit.

Change-Id: I9f285eaa01632b6adea39cae866df6f76e9d0062
compiler/elf_writer_debug.cc