diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/TextAPI/MachO/TextStub.cpp')
-rw-r--r-- | contrib/llvm-project/llvm/lib/TextAPI/MachO/TextStub.cpp | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/contrib/llvm-project/llvm/lib/TextAPI/MachO/TextStub.cpp b/contrib/llvm-project/llvm/lib/TextAPI/MachO/TextStub.cpp index 141f897fb564..1d6352b2e126 100644 --- a/contrib/llvm-project/llvm/lib/TextAPI/MachO/TextStub.cpp +++ b/contrib/llvm-project/llvm/lib/TextAPI/MachO/TextStub.cpp @@ -407,6 +407,9 @@ template <> struct ScalarTraits<Target> { case PlatformKind::watchOSSimulator: OS << "watchos-simulator"; break; + case PlatformKind::driverKit: + OS << "driverkit"; + break; } } @@ -518,13 +521,12 @@ template <> struct MappingTraits<const InterfaceFile *> { break; } } - llvm::sort(Section.Symbols.begin(), Section.Symbols.end()); - llvm::sort(Section.Classes.begin(), Section.Classes.end()); - llvm::sort(Section.ClassEHs.begin(), Section.ClassEHs.end()); - llvm::sort(Section.IVars.begin(), Section.IVars.end()); - llvm::sort(Section.WeakDefSymbols.begin(), - Section.WeakDefSymbols.end()); - llvm::sort(Section.TLVSymbols.begin(), Section.TLVSymbols.end()); + llvm::sort(Section.Symbols); + llvm::sort(Section.Classes); + llvm::sort(Section.ClassEHs); + llvm::sort(Section.IVars); + llvm::sort(Section.WeakDefSymbols); + llvm::sort(Section.TLVSymbols); Exports.emplace_back(std::move(Section)); } @@ -576,12 +578,11 @@ template <> struct MappingTraits<const InterfaceFile *> { break; } } - llvm::sort(Section.Symbols.begin(), Section.Symbols.end()); - llvm::sort(Section.Classes.begin(), Section.Classes.end()); - llvm::sort(Section.ClassEHs.begin(), Section.ClassEHs.end()); - llvm::sort(Section.IVars.begin(), Section.IVars.end()); - llvm::sort(Section.WeakRefSymbols.begin(), - Section.WeakRefSymbols.end()); + llvm::sort(Section.Symbols); + llvm::sort(Section.Classes); + llvm::sort(Section.ClassEHs); + llvm::sort(Section.IVars); + llvm::sort(Section.WeakRefSymbols); Undefineds.emplace_back(std::move(Section)); } } |