diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2024-01-24 19:17:23 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2024-04-19 21:24:44 +0000 |
| commit | ab50317e96e57dee5b3ff4ad3f16f205b2a3359e (patch) | |
| tree | 4b1f388eb6a07e574417aaacecd3ec4a83550718 /contrib/llvm-project/llvm/lib/TextAPI | |
| parent | 412542983a5ba62902141a8a7e155cceb9196a66 (diff) | |
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; } |
