Skip to content

Commit ce951aa

Browse files
Add ppc to _endian and _pointerBitWidth conditions (#66067)
1 parent fbaff97 commit ce951aa

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/Basic/LangOptions.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//
33
// This source file is part of the Swift.org open source project
44
//
5-
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5+
// Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
66
// Licensed under Apache License v2.0 with Runtime Library Exception
77
//
88
// See https://swift.org/LICENSE.txt for license information
@@ -408,6 +408,7 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
408408
case llvm::Triple::ArchType::riscv64:
409409
addPlatformConditionValue(PlatformConditionKind::Endianness, "little");
410410
break;
411+
case llvm::Triple::ArchType::ppc:
411412
case llvm::Triple::ArchType::ppc64:
412413
case llvm::Triple::ArchType::systemz:
413414
addPlatformConditionValue(PlatformConditionKind::Endianness, "big");
@@ -420,6 +421,7 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
420421
case llvm::Triple::ArchType::arm:
421422
case llvm::Triple::ArchType::thumb:
422423
case llvm::Triple::ArchType::aarch64_32:
424+
case llvm::Triple::ArchType::ppc:
423425
case llvm::Triple::ArchType::x86:
424426
case llvm::Triple::ArchType::wasm32:
425427
addPlatformConditionValue(PlatformConditionKind::PointerBitWidth, "_32");

0 commit comments

Comments
 (0)