diff options
Diffstat (limited to 'contrib/llvm-project/llvm/lib/TextAPI')
| -rw-r--r-- | contrib/llvm-project/llvm/lib/TextAPI/Platform.cpp | 4 | ||||
| -rw-r--r-- | contrib/llvm-project/llvm/lib/TextAPI/RecordsSlice.cpp | 5 |
2 files changed, 6 insertions, 3 deletions
diff --git a/contrib/llvm-project/llvm/lib/TextAPI/Platform.cpp b/contrib/llvm-project/llvm/lib/TextAPI/Platform.cpp index ed041af40aa5..e891594300c2 100644 --- a/contrib/llvm-project/llvm/lib/TextAPI/Platform.cpp +++ b/contrib/llvm-project/llvm/lib/TextAPI/Platform.cpp @@ -106,6 +106,10 @@ std::string getOSAndEnvironmentName(PlatformType Platform, return "watchos" + Version + "-simulator"; case PLATFORM_DRIVERKIT: return "driverkit" + Version; + case PLATFORM_XROS: + return "xros" + Version; + case PLATFORM_XROS_SIMULATOR: + return "xros" + Version + "-simulator"; } llvm_unreachable("Unknown llvm::MachO::PlatformType enum"); } diff --git a/contrib/llvm-project/llvm/lib/TextAPI/RecordsSlice.cpp b/contrib/llvm-project/llvm/lib/TextAPI/RecordsSlice.cpp index 7ceffc7c9284..840fe1855da6 100644 --- a/contrib/llvm-project/llvm/lib/TextAPI/RecordsSlice.cpp +++ b/contrib/llvm-project/llvm/lib/TextAPI/RecordsSlice.cpp @@ -332,9 +332,8 @@ llvm::MachO::convertToInterfaceFile(const Records &Slices) { } File = createInterfaceFile(Slices, *InstallNames.begin()); - for (auto it = std::next(InstallNames.begin()); it != InstallNames.end(); - ++it) - File->addDocument(createInterfaceFile(Slices, *it)); + for (StringRef IN : llvm::drop_begin(InstallNames)) + File->addDocument(createInterfaceFile(Slices, IN)); return File; } |
