aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-16 21:46:01 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-16 21:46:01 +0000
commit407899b5adb148db36ae918810efc444d7948a39 (patch)
tree5195c1fa88efe3d45a41dadc1535e728feab238f
parentf2edbf3a5c0595a61c48ab820602a73f779c64b9 (diff)
Fix typo in prev commit.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73556 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Driver/HostInfo.cpp2
-rw-r--r--test/Driver/default-toolchain.c5
2 files changed, 5 insertions, 2 deletions
diff --git a/lib/Driver/HostInfo.cpp b/lib/Driver/HostInfo.cpp
index daac0cb0b6..831e11b98e 100644
--- a/lib/Driver/HostInfo.cpp
+++ b/lib/Driver/HostInfo.cpp
@@ -122,7 +122,7 @@ ToolChain *DarwinHostInfo::getToolChain(const ArgList &Args,
// the ID based Triple interface.
if (Arch == "ppc")
Arch = "powerpc";
- else if (Arch == "powerpc")
+ else if (Arch == "ppc64")
Arch = "powerpc64";
} else {
// Otherwise default to the arch of the host.
diff --git a/test/Driver/default-toolchain.c b/test/Driver/default-toolchain.c
index a9f5cfd3e0..216394fe97 100644
--- a/test/Driver/default-toolchain.c
+++ b/test/Driver/default-toolchain.c
@@ -2,4 +2,7 @@
// RUN: grep 'Target: x86_64-unknown-unknown' %t &&
// RUN: clang -ccc-host-triple i386-apple-darwin9 -arch ppc -m64 -v 2> %t
-// RUN: grep 'Target: powerpc64-apple-darwin9' %t
+// RUN: grep 'Target: powerpc64-apple-darwin9' %t &&
+
+// RUN: clang -ccc-host-triple i386-apple-darwin9 -arch ppc64 -m32 -v 2> %t
+// RUN: grep 'Target: powerpc-apple-darwin9' %t