mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add swift::getNonSimulatorPlatform for DarwinPlatformKind
And use it in getDarwinLibraryNameSuffixForTriple, making the logic there clearer. Suggested by David U!
This commit is contained in:
@@ -58,6 +58,11 @@ namespace swift {
|
||||
/// Returns the platform Kind for Darwin triples.
|
||||
DarwinPlatformKind getDarwinPlatformKind(const llvm::Triple &triple);
|
||||
|
||||
/// Maps an arbitrary platform to its non-simulator equivalent.
|
||||
///
|
||||
/// If \p platform is not a simulator platform, it will be returned as is.
|
||||
DarwinPlatformKind getNonSimulatorPlatform(DarwinPlatformKind platform);
|
||||
|
||||
/// Returns the architecture component of the path for a given target triple.
|
||||
///
|
||||
/// Typically this is used for mapping the architecture component of the
|
||||
|
||||
Reference in New Issue
Block a user