diff options
| author | Lang Hames <lhames@gmail.com> | 2015-12-11 23:25:09 +0000 |
|---|---|---|
| committer | Lang Hames <lhames@gmail.com> | 2015-12-11 23:25:09 +0000 |
| commit | ac2adce66bf223efd01e19cda94813ef93cdaddb (patch) | |
| tree | 632fe0153d700eda8b629ae32f4a54fd54489f74 /lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp | |
| parent | 10cf124bb920b85efcea7f7b313f7e3053f2b87c (diff) | |
| download | bcm5719-llvm-ac2adce66bf223efd01e19cda94813ef93cdaddb.tar.gz bcm5719-llvm-ac2adce66bf223efd01e19cda94813ef93cdaddb.zip | |
[lld][MachO] Recognize __thread_bss sections as zero-fill and set all the
appropriate bits.
This fixes the remaining clang regression test failures when linking clang with
lld on Darwin.
llvm-svn: 255390
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp index a653c5f38c8..0b92a68eeae 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileYAML.cpp @@ -278,7 +278,7 @@ struct MappingTraits<Section> { io.mapOptional("attributes", sect.attributes); io.mapOptional("alignment", sect.alignment, (uint16_t)1); io.mapRequired("address", sect.address); - if (sect.type == llvm::MachO::S_ZEROFILL) { + if (isZeroFillSection(sect.type)) { // S_ZEROFILL sections use "size:" instead of "content:" uint64_t size = sect.content.size(); io.mapOptional("size", size); |

