aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/MC/MCDisassembler/Disassembler.cpp
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-10-03 08:54:43 +0000
committerAlexey Samsonov <samsonov@google.com>2013-10-03 08:54:43 +0000
commit4436bf03e9220d490caf17f1c34e8c6e4bdbbf11 (patch)
tree4e54bd0d3bd4cf494037a76c34dbba5e2230a591 /llvm/lib/MC/MCDisassembler/Disassembler.cpp
parent364f70c7286ef11106e12bf38af89686502b0872 (diff)
downloadllvm-4436bf03e9220d490caf17f1c34e8c6e4bdbbf11.zip
llvm-4436bf03e9220d490caf17f1c34e8c6e4bdbbf11.tar.gz
llvm-4436bf03e9220d490caf17f1c34e8c6e4bdbbf11.tar.bz2
Remove wild .debug_aranges entries generated from unimportant labels
r191052 added emitting .debug_aranges to Clang, but this functionality is broken: it uses all MC labels added in DWARF Asm printer, including the labels for build relocations between different DWARF sections, like .Lsection_line or .Ldebug_loc0. As a result, if any DIE .debug_info would contain "DW_AT_location=0x123" attribute, .debug_aranges would also contain a range starting from 0x123, breaking tools that rely on this section. This patch fixes this by using only MC labels that corresponds to the addresses in the user program. llvm-svn: 191884
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions