From 7ad6ea520fe49e9320bd15a4daf88e36259efedc Mon Sep 17 00:00:00 2001 From: Xing GUO Date: Fri, 31 Jul 2020 23:20:44 +0800 Subject: [PATCH] [DWARFYAML][debug_aranges] Use yaml::Hex64 rather than uint64_t as length. NFC. It's better to use yaml::Hex64 as length in the tuples of the address range table. --- llvm/include/llvm/ObjectYAML/DWARFYAML.h | 2 +- llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/ObjectYAML/DWARFYAML.h b/llvm/include/llvm/ObjectYAML/DWARFYAML.h index 5737cecc..127a529 100644 --- a/llvm/include/llvm/ObjectYAML/DWARFYAML.h +++ b/llvm/include/llvm/ObjectYAML/DWARFYAML.h @@ -61,7 +61,7 @@ struct Abbrev { struct ARangeDescriptor { llvm::yaml::Hex64 Address; - uint64_t Length; + yaml::Hex64 Length; }; struct ARange { diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml index 1e9b880..762fcbf 100644 --- a/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml +++ b/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml @@ -333,7 +333,7 @@ DWARF: # CHECK-NEXT: AddressSize: 0x08 # CHECK-NEXT: Descriptors: # CHECK-NEXT: - Address: 0x0000000100000F50 -# CHECK-NEXT: Length: 52 +# CHECK-NEXT: Length: 0x0000000000000034 ## b) Test that if the "debug_aranges" entry is empty, yaml2macho will only emit the ## section header. -- 2.7.4