From 407899b5adb148db36ae918810efc444d7948a39 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 16 Jun 2009 21:46:01 +0000 Subject: [PATCH] Fix typo in prev commit. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@73556 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/HostInfo.cpp | 2 +- test/Driver/default-toolchain.c | 5 ++++- 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 -- 2.50.1