aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorXing GUO <higuoxing@gmail.com>2020-06-05 12:15:34 +0800
committerXing GUO <higuoxing@gmail.com>2020-06-05 12:16:44 +0800
commit929edd8bd25b0390de97994eb90f42b26636d205 (patch)
tree62831bf79751fbc5f99fb61f037ab74dca76c642 /clang/lib/CodeGen/CodeGenModule.cpp
parent3c32af58f6c5b78d578e576eeaa81f14c2a71953 (diff)
downloadllvm-929edd8bd25b0390de97994eb90f42b26636d205.zip
llvm-929edd8bd25b0390de97994eb90f42b26636d205.tar.gz
llvm-929edd8bd25b0390de97994eb90f42b26636d205.tar.bz2
[DWARFYAML][debug_aranges] Replace InitialLength with Format and Length.
This patch addresses the comment in [D80972](https://reviews.llvm.org/D80972#inline-744217). Before this patch, the initial length field of .debug_aranges section should be declared as: ``` ## 32-bit DWARF debug_aranges: - Length: TotalLength: 0x20 Version: 2 ... ## 64-bit DWARF debug_aranges: - Length: TotalLength: 0xffffffff TotalLength64: 0x20 Version: 2 ... ``` After this patch: ``` ## 32-bit DWARF debug_aranges: - [[Format: DWARF32]] ## Optional Length: 0x20 Version: 2 ... ## 64-bit DWARF debug_aranges: - Format: DWARF64 Length: 0x20 Version: 2 ``` Current implementation of generating DWARF64 .debug_aranges section is buggy. A follow-up patch will improve it and add test cases for DWARF64. Reviewed By: jhenderson Differential Revision: https://reviews.llvm.org/D81063
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions