[llvm] 334a702 - [DWARFYAML] Replace uint*_t with yaml::Hex* in the 'debug_aranges' entry.
Xing GUO via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 29 01:43:38 PDT 2020
Author: Xing GUO
Date: 2020-07-29T16:43:21+08:00
New Revision: 334a7025e0d1dd79e3c6b1976be65296ab3da01d
URL: https://github.com/llvm/llvm-project/commit/334a7025e0d1dd79e3c6b1976be65296ab3da01d
DIFF: https://github.com/llvm/llvm-project/commit/334a7025e0d1dd79e3c6b1976be65296ab3da01d.diff
LOG: [DWARFYAML] Replace uint*_t with yaml::Hex* in the 'debug_aranges' entry.
Normally, we use yaml::Hex* to describe the length, offsets,
address/segment size. NFC.
Added:
Modified:
llvm/include/llvm/ObjectYAML/DWARFYAML.h
llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml
Removed:
################################################################################
diff --git a/llvm/include/llvm/ObjectYAML/DWARFYAML.h b/llvm/include/llvm/ObjectYAML/DWARFYAML.h
index f4ace738ef8c..6b8ab07274ac 100644
--- a/llvm/include/llvm/ObjectYAML/DWARFYAML.h
+++ b/llvm/include/llvm/ObjectYAML/DWARFYAML.h
@@ -66,11 +66,11 @@ struct ARangeDescriptor {
struct ARange {
dwarf::DwarfFormat Format;
- uint64_t Length;
+ yaml::Hex64 Length;
uint16_t Version;
- uint32_t CuOffset;
- uint8_t AddrSize;
- uint8_t SegSize;
+ yaml::Hex64 CuOffset;
+ yaml::Hex8 AddrSize;
+ yaml::Hex8 SegSize;
std::vector<ARangeDescriptor> Descriptors;
};
diff --git a/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml b/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml
index 2822c94d7751..b23989ffad07 100644
--- a/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml
+++ b/llvm/test/ObjectYAML/MachO/DWARF-debug_aranges.yaml
@@ -325,11 +325,11 @@ DWARF:
#CHECK: DWARF:
#CHECK: debug_aranges:
-#CHECK: - Length: 44
+#CHECK: - Length: 0x000000000000002C
#CHECK: Version: 2
-#CHECK: CuOffset: 0
-#CHECK: AddrSize: 8
-#CHECK: SegSize: 0
+#CHECK: CuOffset: 0x0000000000000000
+#CHECK: AddrSize: 0x08
+#CHECK: SegSize: 0x00
#CHECK: Descriptors:
#CHECK: - Address: 0x0000000100000F50
#CHECK: Length: 52
More information about the llvm-commits
mailing list