[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.
This commit is contained in:
Xing GUO 2020-07-31 23:20:44 +08:00
parent c6f08b14d4
commit 7ad6ea520f
2 changed files with 2 additions and 2 deletions

View File

@ -61,7 +61,7 @@ struct Abbrev {
struct ARangeDescriptor {
llvm::yaml::Hex64 Address;
uint64_t Length;
yaml::Hex64 Length;
};
struct ARange {

View File

@ -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.