aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ExprConstant.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2022-07-27 14:30:39 -0700
committerJonas Devlieghere <jonas@devlieghere.com>2022-07-27 15:26:46 -0700
commitecda408178fc6486ea568263cdda6624f5bcb8c7 (patch)
tree2ed645e2e45144c97dc6b8d0bd7bc0a6cfd15a63 /clang/lib/AST/ExprConstant.cpp
parent98647330bffb2a0c5dd2f8aadc4b6d97efad4776 (diff)
downloadllvm-ecda408178fc6486ea568263cdda6624f5bcb8c7.zip
llvm-ecda408178fc6486ea568263cdda6624f5bcb8c7.tar.gz
llvm-ecda408178fc6486ea568263cdda6624f5bcb8c7.tar.bz2
[lldb] Read from the Rosetta shared cache with Xcode 14
Xcode 14 no longer puts the Rosetta expanded shared cache in a directory named "16.0". Instead, it includes the real version number (e.g. 13.0), the build string and the architecture, similar to the device support directory names for iOS, tvOS and watchOS. Currently, when there are multiple directories, we might end up picking the wrong one in GetSDKDirectoryForCurrentOSVersion. The problem is that without the build string we have no way to differentiate between multiple directories with the same version number. This patch fixes the problem by using GetOSBuildString which, as the name implies, returns the build string if known. This also adds a test for Rosetta debugging on Apple Silicon. Depending on whether the Rosetta expanded shared cache is present, the test ensures that there is or isn't a diagnostic about reading out of memory. rdar://97576121 Differential revision: https://reviews.llvm.org/D130540
Diffstat (limited to 'clang/lib/AST/ExprConstant.cpp')
0 files changed, 0 insertions, 0 deletions