diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2022-03-20 11:40:34 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2022-06-04 11:58:51 +0000 |
| commit | 4b6eb0e63c698094db5506763df44cc83c19f643 (patch) | |
| tree | f1d30b8c10bc6db323b91538745ae8ab8b593910 /contrib/llvm-project/llvm/lib/ObjectYAML/MachOYAML.cpp | |
| parent | 76886853f03395abb680824bcc74e98f83bd477a (diff) | |
Diffstat (limited to 'contrib/llvm-project/llvm/lib/ObjectYAML/MachOYAML.cpp')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/ObjectYAML/MachOYAML.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/contrib/llvm-project/llvm/lib/ObjectYAML/MachOYAML.cpp b/contrib/llvm-project/llvm/lib/ObjectYAML/MachOYAML.cpp index dce82ab1cada..c9562bd72258 100644 --- a/contrib/llvm-project/llvm/lib/ObjectYAML/MachOYAML.cpp +++ b/contrib/llvm-project/llvm/lib/ObjectYAML/MachOYAML.cpp @@ -110,6 +110,9 @@ void MappingTraits<MachOYAML::Object>::mapping(IO &IO, Object.DWARF.Is64BitAddrSize = Object.Header.magic == MachO::MH_MAGIC_64 || Object.Header.magic == MachO::MH_CIGAM_64; IO.mapOptional("LoadCommands", Object.LoadCommands); + + if (Object.RawLinkEditSegment || !IO.outputting()) + IO.mapOptional("__LINKEDIT", Object.RawLinkEditSegment); if(!Object.LinkEdit.isEmpty() || !IO.outputting()) IO.mapOptional("LinkEditData", Object.LinkEdit); @@ -234,6 +237,30 @@ void mapLoadCommandData<MachO::dylinker_command>( } template <> +void mapLoadCommandData<MachO::sub_framework_command>( + IO &IO, MachOYAML::LoadCommand &LoadCommand) { + IO.mapOptional("Content", LoadCommand.Content); +} + +template <> +void mapLoadCommandData<MachO::sub_umbrella_command>( + IO &IO, MachOYAML::LoadCommand &LoadCommand) { + IO.mapOptional("Content", LoadCommand.Content); +} + +template <> +void mapLoadCommandData<MachO::sub_client_command>( + IO &IO, MachOYAML::LoadCommand &LoadCommand) { + IO.mapOptional("Content", LoadCommand.Content); +} + +template <> +void mapLoadCommandData<MachO::sub_library_command>( + IO &IO, MachOYAML::LoadCommand &LoadCommand) { + IO.mapOptional("Content", LoadCommand.Content); +} + +template <> void mapLoadCommandData<MachO::build_version_command>( IO &IO, MachOYAML::LoadCommand &LoadCommand) { IO.mapOptional("Tools", LoadCommand.Tools); |
