This patch adds a new field bool Is64bit in DWARFYAML::Data to indicate the address size of target. It's helpful for inferring the AddrSize in some DWARF sections.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
It looks reasonable to me.
llvm/lib/ObjectYAML/DWARFEmitter.cpp | ||
---|---|---|
148 | I'd suggest to do in the next way: uint8_t AddrSize; if (DebugRanges.AddrSize) AddrSize = *DebugRanges.AddrSize; else AddrSize = DI.Is64bit ? 8 : 4; | |
llvm/lib/ObjectYAML/MachOYAML.cpp | ||
111 | I am not an expert in MachO, but should MachO::FAT_MAGIC_64 and MachO::FAT_CIGAM_64 also be tested? |
Comment Actions
Address comment.
Thanks for reviewing!
llvm/lib/ObjectYAML/MachOYAML.cpp | ||
---|---|---|
111 | The Fat binary format has its own unique tag --- !fat-mach-o I think we don't need to worry about it here. |
I'd suggest to do in the next way: