]> granicus.if.org Git - clang/commitdiff
Fix typo in prev commit.
authorDaniel Dunbar <daniel@zuster.org>
Tue, 16 Jun 2009 21:46:01 +0000 (21:46 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Tue, 16 Jun 2009 21:46:01 +0000 (21:46 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73556 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/HostInfo.cpp
test/Driver/default-toolchain.c

index daac0cb0b6465ca57ac9fa5184048c47574ff883..831e11b98e42dbae2e18297ef087edf020451fa3 100644 (file)
@@ -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.
index a9f5cfd3e047cc855dad4c0e2e3a5727fdd06a8c..216394fe97d9bc7dfed0baed19e5263bc2b21dcb 100644 (file)
@@ -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