[cfe-commits] r73556 - in /cfe/trunk: lib/Driver/HostInfo.cpp test/Driver/default-toolchain.c

Daniel Dunbar daniel at zuster.org
Tue Jun 16 14:46:01 PDT 2009


Author: ddunbar
Date: Tue Jun 16 16:46:01 2009
New Revision: 73556

URL: http://llvm.org/viewvc/llvm-project?rev=73556&view=rev
Log:
Fix typo in prev commit.

Modified:
    cfe/trunk/lib/Driver/HostInfo.cpp
    cfe/trunk/test/Driver/default-toolchain.c

Modified: cfe/trunk/lib/Driver/HostInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Driver/HostInfo.cpp?rev=73556&r1=73555&r2=73556&view=diff

==============================================================================
--- cfe/trunk/lib/Driver/HostInfo.cpp (original)
+++ cfe/trunk/lib/Driver/HostInfo.cpp Tue Jun 16 16:46:01 2009
@@ -122,7 +122,7 @@
       // 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.

Modified: cfe/trunk/test/Driver/default-toolchain.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Driver/default-toolchain.c?rev=73556&r1=73555&r2=73556&view=diff

==============================================================================
--- cfe/trunk/test/Driver/default-toolchain.c (original)
+++ cfe/trunk/test/Driver/default-toolchain.c Tue Jun 16 16:46:01 2009
@@ -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





More information about the cfe-commits mailing list