diff options
author | Alex Lorenz <arphaman@gmail.com> | 2019-07-03 01:02:43 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2019-07-03 01:02:43 +0000 |
commit | 3dbdbbec849481791da1483f62d62f4ca0d4837e (patch) | |
tree | e5195e14bb3d5d6a82b682acea05e24993585cb5 /llvm/lib/Support | |
parent | c0b557744a7d8d87a7e5dd0364b168648d408ea9 (diff) | |
download | bcm5719-llvm-3dbdbbec849481791da1483f62d62f4ca0d4837e.tar.gz bcm5719-llvm-3dbdbbec849481791da1483f62d62f4ca0d4837e.zip |
[triple] Use 'macabi' environment name for the Mac Catalyst triples
The 'macabi' environment name is preferred instead of 'maccatalyst'.
llvm-svn: 364988
Diffstat (limited to 'llvm/lib/Support')
-rw-r--r-- | llvm/lib/Support/Triple.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 54264903320..d419463e6a5 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -239,7 +239,7 @@ StringRef Triple::getEnvironmentTypeName(EnvironmentType Kind) { case Cygnus: return "cygnus"; case CoreCLR: return "coreclr"; case Simulator: return "simulator"; - case MacCatalyst: return "maccatalyst"; + case MacABI: return "macabi"; } llvm_unreachable("Invalid EnvironmentType!"); @@ -542,7 +542,7 @@ static Triple::EnvironmentType parseEnvironment(StringRef EnvironmentName) { .StartsWith("cygnus", Triple::Cygnus) .StartsWith("coreclr", Triple::CoreCLR) .StartsWith("simulator", Triple::Simulator) - .StartsWith("maccatalyst", Triple::MacCatalyst) + .StartsWith("macabi", Triple::MacABI) .Default(Triple::UnknownEnvironment); } |