File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 2
2
//
3
3
// This source file is part of the Swift.org open source project
4
4
//
5
- // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2014 - 2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See https://swift.org/LICENSE.txt for license information
@@ -408,6 +408,7 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
408
408
case llvm::Triple::ArchType::riscv64:
409
409
addPlatformConditionValue (PlatformConditionKind::Endianness, " little" );
410
410
break ;
411
+ case llvm::Triple::ArchType::ppc:
411
412
case llvm::Triple::ArchType::ppc64:
412
413
case llvm::Triple::ArchType::systemz:
413
414
addPlatformConditionValue (PlatformConditionKind::Endianness, " big" );
@@ -420,6 +421,7 @@ std::pair<bool, bool> LangOptions::setTarget(llvm::Triple triple) {
420
421
case llvm::Triple::ArchType::arm:
421
422
case llvm::Triple::ArchType::thumb:
422
423
case llvm::Triple::ArchType::aarch64_32:
424
+ case llvm::Triple::ArchType::ppc:
423
425
case llvm::Triple::ArchType::x86:
424
426
case llvm::Triple::ArchType::wasm32:
425
427
addPlatformConditionValue (PlatformConditionKind::PointerBitWidth, " _32" );
You can’t perform that action at this time.
0 commit comments