forked from OSchip/llvm-project
[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:
parent
e4b4f994d2
commit
6d187f0eff
|
@ -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";
|
||||
|
|
|
@ -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");
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue