summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ObjectYAML/MachOYAML.cpp
diff options
context:
space:
mode:
authorKevin Enderby <enderby@apple.com>2017-01-19 17:36:31 +0000
committerKevin Enderby <enderby@apple.com>2017-01-19 17:36:31 +0000
commita4579c41843e1aa48d29cc837108b0a112d8ba8a (patch)
treea3b6a03ceb71255f1c13d29a4fac3b5e5b58446b /llvm/lib/ObjectYAML/MachOYAML.cpp
parent4687db0e09322d5a24f89aaa221ba854199e4333 (diff)
downloadbcm5719-llvm-a4579c41843e1aa48d29cc837108b0a112d8ba8a.tar.gz
bcm5719-llvm-a4579c41843e1aa48d29cc837108b0a112d8ba8a.zip
Add support for the new LC_NOTE load command.
It describes a region of arbitrary data included in a Mach-O file. Its initial use is to record extra data in MH_CORE files. rdar://30001545 rdar://30001731 llvm-svn: 292500
Diffstat (limited to 'llvm/lib/ObjectYAML/MachOYAML.cpp')
-rw-r--r--llvm/lib/ObjectYAML/MachOYAML.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/lib/ObjectYAML/MachOYAML.cpp b/llvm/lib/ObjectYAML/MachOYAML.cpp
index a033a79189b..f04956332e0 100644
--- a/llvm/lib/ObjectYAML/MachOYAML.cpp
+++ b/llvm/lib/ObjectYAML/MachOYAML.cpp
@@ -558,6 +558,14 @@ void MappingTraits<MachO::version_min_command>::mapping(
IO.mapRequired("sdk", LoadCommand.sdk);
}
+void MappingTraits<MachO::note_command>::mapping(
+ IO &IO, MachO::note_command &LoadCommand) {
+
+ IO.mapRequired("data_owner", LoadCommand.data_owner);
+ IO.mapRequired("offset", LoadCommand.offset);
+ IO.mapRequired("size", LoadCommand.size);
+}
+
} // namespace llvm::yaml
} // namespace llvm
OpenPOWER on IntegriCloud