Skip to content

Commit 8d7a523

Browse files
committed
[Driver] Remove remnant PowerPC Darwin code
Continue the work started at https://reviews.llvm.org/D50989
1 parent 821c332 commit 8d7a523

File tree

3 files changed

+5
-8
lines changed

3 files changed

+5
-8
lines changed

clang/lib/Driver/ToolChains/Darwin.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,6 @@ llvm::Triple::ArchType darwin::getArchTypeForMachOArchName(StringRef Str) {
5353
// translation.
5454

5555
return llvm::StringSwitch<llvm::Triple::ArchType>(Str)
56-
.Cases("ppc", "ppc601", "ppc603", "ppc604", "ppc604e", llvm::Triple::ppc)
57-
.Cases("ppc750", "ppc7400", "ppc7450", "ppc970", llvm::Triple::ppc)
58-
.Case("ppc64", llvm::Triple::ppc64)
5956
.Cases("i386", "i486", "i486SX", "i586", "i686", llvm::Triple::x86)
6057
.Cases("pentium", "pentpro", "pentIIm3", "pentIIm5", "pentium4",
6158
llvm::Triple::x86)

clang/test/Driver/bindings.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
// RUN: %clang -target i386-unknown-unknown -ccc-print-bindings -fsyntax-only -x c++ %s 2>&1 | FileCheck %s --check-prefix=CHECK08
1313
// CHECK08: "clang", inputs: ["{{.*}}bindings.c"], output: (nothing)
1414

15-
// RUN: %clang -target i386-apple-darwin11 -ccc-print-bindings %s -S -arch ppc 2>&1 | FileCheck %s --check-prefix=CHECK11
15+
// RUN: %clang -target i386-apple-darwin11 -ccc-print-bindings %s -S -arch arm 2>&1 | FileCheck %s --check-prefix=CHECK11
1616
// CHECK11: "clang", inputs: ["{{.*}}bindings.c"], output: "bindings.s"
1717

1818
// RUN: %clang -target powerpc-unknown-unknown -ccc-print-bindings %s -S 2>&1 | FileCheck %s --check-prefix=CHECK12

clang/test/Driver/phases.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,25 @@
2828
// BASIC: 25: linker, {4, 9, 14, 16, 19, 24}, image
2929

3030
// Universal linked image.
31-
// RUN: %clang -target i386-apple-darwin9 -ccc-print-phases -x c %s -arch ppc -arch i386 2>&1 | FileCheck -check-prefix=ULI %s
31+
// RUN: %clang -target i386-apple-darwin9 -ccc-print-phases -x c %s -arch arm -arch i386 2>&1 | FileCheck -check-prefix=ULI %s
3232
// ULI: 0: input, "{{.*}}phases.c", c
3333
// ULI: 1: preprocessor, {0}, cpp-output
3434
// ULI: 2: compiler, {1}, ir
3535
// ULI: 3: backend, {2}, assembler
3636
// ULI: 4: assembler, {3}, object
3737
// ULI: 5: linker, {4}, image
38-
// ULI: 6: bind-arch, "ppc", {5}, image
38+
// ULI: 6: bind-arch, "arm", {5}, image
3939
// ULI: 7: bind-arch, "i386", {5}, image
4040
// ULI: 8: lipo, {6, 7}, image
4141

4242
// Universal object file.
43-
// RUN: %clang -target i386-apple-darwin9 -ccc-print-phases -c -x c %s -arch ppc -arch i386 2>&1 | FileCheck -check-prefix=UOF %s
43+
// RUN: %clang -target i386-apple-darwin9 -ccc-print-phases -c -x c %s -arch arm -arch i386 2>&1 | FileCheck -check-prefix=UOF %s
4444
// UOF: 0: input, "{{.*}}phases.c", c
4545
// UOF: 1: preprocessor, {0}, cpp-output
4646
// UOF: 2: compiler, {1}, ir
4747
// UOF: 3: backend, {2}, assembler
4848
// UOF: 4: assembler, {3}, object
49-
// UOF: 5: bind-arch, "ppc", {4}, object
49+
// UOF: 5: bind-arch, "arm", {4}, object
5050
// UOF: 6: bind-arch, "i386", {4}, object
5151
// UOF: 7: lipo, {5, 6}, object
5252

0 commit comments

Comments
 (0)