diff options
| author | Chris Bieneman <beanz@apple.com> | 2016-05-20 18:36:52 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2016-05-20 18:36:52 +0000 |
| commit | 64c9e1227ec59b2bb147ec53769042bd7d7e5cea (patch) | |
| tree | 8c5f449e3258eb23351ad7f2480fe1260e5b2cce | |
| parent | 4f147a54a1b9c809764bdcd3f3c907a9ca503b20 (diff) | |
| download | bcm5719-llvm-64c9e1227ec59b2bb147ec53769042bd7d7e5cea.tar.gz bcm5719-llvm-64c9e1227ec59b2bb147ec53769042bd7d7e5cea.zip | |
[MachOYAML] Removing duplicated field from LC_UUID YAML
The uuid_command was duplicating the load_command.cmdsize field. This removes the duplicate from the YAML mapping and from the test cases.
llvm-svn: 270248
| -rw-r--r-- | llvm/lib/ObjectYAML/MachOYAML.cpp | 1 | ||||
| -rw-r--r-- | llvm/test/ObjectYAML/MachO/load_commands.yaml | 2 | ||||
| -rw-r--r-- | llvm/test/ObjectYAML/MachO/sections.yaml | 1 |
3 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/ObjectYAML/MachOYAML.cpp b/llvm/lib/ObjectYAML/MachOYAML.cpp index 4111adefa76..2b4cfa0ce47 100644 --- a/llvm/lib/ObjectYAML/MachOYAML.cpp +++ b/llvm/lib/ObjectYAML/MachOYAML.cpp @@ -439,7 +439,6 @@ void MappingTraits<MachO::twolevel_hints_command>::mapping( void MappingTraits<MachO::uuid_command>::mapping( IO &IO, MachO::uuid_command &LoadCommand) { - IO.mapRequired("cmdsize", LoadCommand.cmdsize); IO.mapRequired("uuid", LoadCommand.uuid); } diff --git a/llvm/test/ObjectYAML/MachO/load_commands.yaml b/llvm/test/ObjectYAML/MachO/load_commands.yaml index 6de6b3ce1a1..65405426014 100644 --- a/llvm/test/ObjectYAML/MachO/load_commands.yaml +++ b/llvm/test/ObjectYAML/MachO/load_commands.yaml @@ -98,7 +98,6 @@ LoadCommands: name: 12 - cmd: LC_UUID cmdsize: 24 - cmdsize: 24 uuid: 461A1B28-822F-3F38-B670-645419E636F5 - cmd: LC_VERSION_MIN_MACOSX cmdsize: 16 @@ -225,7 +224,6 @@ LoadCommands: #CHECK: name: 12 #CHECK: - cmd: LC_UUID #CHECK: cmdsize: 24 -#CHECK: cmdsize: 24 #CHECK: uuid: 461A1B28-822F-3F38-B670-645419E636F5 #CHECK: - cmd: LC_VERSION_MIN_MACOSX #CHECK: cmdsize: 16 diff --git a/llvm/test/ObjectYAML/MachO/sections.yaml b/llvm/test/ObjectYAML/MachO/sections.yaml index 6e00a5883f1..e1b2c2e7b5c 100644 --- a/llvm/test/ObjectYAML/MachO/sections.yaml +++ b/llvm/test/ObjectYAML/MachO/sections.yaml @@ -208,7 +208,6 @@ LoadCommands: name: 12 - cmd: LC_UUID cmdsize: 24 - cmdsize: 24 uuid: 461A1B28-822F-3F38-B670-645419E636F5 - cmd: LC_VERSION_MIN_MACOSX cmdsize: 16 |

