diff options
| author | Chris Bieneman <beanz@apple.com> | 2016-05-12 17:53:01 +0000 |
|---|---|---|
| committer | Chris Bieneman <beanz@apple.com> | 2016-05-12 17:53:01 +0000 |
| commit | 668beb2cd62dd5d884277d8c34cfb099cb17954a (patch) | |
| tree | 0a96d537a08a826d354f8f9f252683ba9356b2d2 /llvm/lib | |
| parent | 123a52735d44471e9bb01d74d39b3b5ce355d948 (diff) | |
| download | bcm5719-llvm-668beb2cd62dd5d884277d8c34cfb099cb17954a.tar.gz bcm5719-llvm-668beb2cd62dd5d884277d8c34cfb099cb17954a.zip | |
[ObjectYAML] filetype is a required field in MachO headers
Not sure how I managed to copy-pasta this wrong, but I did.
llvm-svn: 269317
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/ObjectYAML/MachOYAML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/ObjectYAML/MachOYAML.cpp b/llvm/lib/ObjectYAML/MachOYAML.cpp index 0ef716047c8..c33f54f9c50 100644 --- a/llvm/lib/ObjectYAML/MachOYAML.cpp +++ b/llvm/lib/ObjectYAML/MachOYAML.cpp @@ -23,7 +23,7 @@ void MappingTraits<MachOYAML::FileHeader>::mapping( IO.mapRequired("magic", FileHdr.magic); IO.mapRequired("cputype", FileHdr.cputype); IO.mapRequired("cpusubtype", FileHdr.cpusubtype); - IO.mapOptional("filetype", FileHdr.filetype); + IO.mapRequired("filetype", FileHdr.filetype); IO.mapRequired("ncmds", FileHdr.ncmds); IO.mapRequired("sizeofcmds", FileHdr.sizeofcmds); IO.mapRequired("flags", FileHdr.flags); |

