[macCatalyst] Use macCatalyst pretty name in .build_version darwin

assembly command

'macCatalyst' is more readable than 'maccatalyst'. I renamed the objdump output,
but the assembly should match it as well.

llvm-svn: 365964
This commit is contained in:
Alex Lorenz 2019-07-12 22:06:08 +00:00
parent e4b4f994d2
commit 6d187f0eff
4 changed files with 5 additions and 5 deletions

View File

@ -541,7 +541,7 @@ static const char *getPlatformName(MachO::PlatformType Type) {
case MachO::PLATFORM_TVOS: return "tvos";
case MachO::PLATFORM_WATCHOS: return "watchos";
case MachO::PLATFORM_BRIDGEOS: return "bridgeos";
case MachO::PLATFORM_MACCATALYST: return "maccatalyst";
case MachO::PLATFORM_MACCATALYST: return "macCatalyst";
case MachO::PLATFORM_IOSSIMULATOR: return "iossimulator";
case MachO::PLATFORM_TVOSSIMULATOR: return "tvossimulator";
case MachO::PLATFORM_WATCHOSSIMULATOR: return "watchossimulator";

View File

@ -1169,7 +1169,7 @@ bool DarwinAsmParser::parseBuildVersion(StringRef Directive, SMLoc Loc) {
.Case("ios", MachO::PLATFORM_IOS)
.Case("tvos", MachO::PLATFORM_TVOS)
.Case("watchos", MachO::PLATFORM_WATCHOS)
.Case("maccatalyst", MachO::PLATFORM_MACCATALYST)
.Case("macCatalyst", MachO::PLATFORM_MACCATALYST)
.Default(0);
if (Platform == 0)
return Error(PlatformLoc, "unknown platform name");

View File

@ -1,3 +1,3 @@
; RUN: llc %s -o - | FileCheck %s
target triple="x86_64-apple-ios13.0-macabi"
; CHECK: .build_version maccatalyst, 13, 0
; CHECK: .build_version macCatalyst, 13, 0

View File

@ -1,4 +1,4 @@
// RUN: llvm-mc -triple x86_64-apple-ios %s | FileCheck %s
.build_version maccatalyst,13,0
// CHECK: .build_version maccatalyst, 13, 0
.build_version macCatalyst,13,0
// CHECK: .build_version macCatalyst, 13, 0