[PATCH] D81709: [ObjectYAML][DWARF] Let the target address size be inferred from FileHeader.

Xing GUO via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 19:15:53 PDT 2020


Higuoxing created this revision.
Higuoxing added reviewers: jhenderson, grimar, MaskRay.
Herald added subscribers: llvm-commits, hiraditya, aprantl, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
Higuoxing updated this revision to Diff 270288.
Higuoxing added a comment.

- `magic` of 64-bit target in `Mach-O` can be `MH_CIGM_64` as well.


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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D81709

Files:
  llvm/include/llvm/ObjectYAML/DWARFYAML.h
  llvm/lib/ObjectYAML/DWARFEmitter.cpp
  llvm/lib/ObjectYAML/DWARFYAML.cpp
  llvm/lib/ObjectYAML/ELFYAML.cpp
  llvm/lib/ObjectYAML/MachOYAML.cpp
  llvm/test/tools/obj2yaml/macho-DWARF-debug-ranges.yaml
  llvm/test/tools/yaml2obj/ELF/DWARF/debug-ranges.yaml

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D81709.270288.patch
Type: text/x-patch
Size: 6397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200612/51d1d94a/attachment-0001.bin>


More information about the llvm-commits mailing list