diff options
| author | Pete Cooper <peter_cooper@apple.com> | 2016-02-04 02:16:08 +0000 |
|---|---|---|
| committer | Pete Cooper <peter_cooper@apple.com> | 2016-02-04 02:16:08 +0000 |
| commit | ceee5de088f3b644c4040145e1ed1242ef9ca9fa (patch) | |
| tree | 6b38f9c86fb64dc85f14a1054e8fb0b72840fa86 /lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp | |
| parent | 2b9be250660eaf563fc9a3520363b7f19569daf1 (diff) | |
| download | bcm5719-llvm-ceee5de088f3b644c4040145e1ed1242ef9ca9fa.tar.gz bcm5719-llvm-ceee5de088f3b644c4040145e1ed1242ef9ca9fa.zip | |
Generate version min load commands when the platform is unknown.
In the case where we are emitting to an object file, the platform is
possibly unknown, and the source object files contained load commands
for version min, we can take the maximum of those min versions and
emit in in the output object file.
This test also tests r259739.
llvm-svn: 259742
Diffstat (limited to 'lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp')
| -rw-r--r-- | lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp b/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp index 80f2038d98b..3d4457ab912 100644 --- a/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp +++ b/lld/lib/ReaderWriter/MachO/MachONormalizedFileToAtoms.cpp @@ -1061,6 +1061,8 @@ normalizedObjectToAtoms(MachOFile *file, file->setFlags(normalizedFile.flags); file->setArch(normalizedFile.arch); file->setOS(normalizedFile.os); + file->setMinVersion(normalizedFile.minOSverson); + file->setMinVersionLoadCommandKind(normalizedFile.minOSVersionKind); // Sort references in each atom to their canonical order. for (const DefinedAtom* defAtom : file->defined()) { |

