From: Daniel Dunbar Date: Wed, 18 Mar 2009 04:41:46 +0000 (+0000) Subject: Driver: Add two normalizations for powerpc. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c811b6c5e3ad403c535fba25a03c956599ff27a5;p=clang Driver: Add two normalizations for powerpc. - PR3830 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67166 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Driver/Driver.cpp b/lib/Driver/Driver.cpp index 84f3428c62..b41c2fa96e 100644 --- a/lib/Driver/Driver.cpp +++ b/lib/Driver/Driver.cpp @@ -860,6 +860,8 @@ const HostInfo *Driver::GetHostInfo(const char *Triple) const { Arch = "i386"; else if (Arch == "amd64") Arch = "x86_64"; + else if (Arch == "powerpc" || Arch == "Power Macintosh") + Arch = "ppc"; if (memcmp(&OS[0], "darwin", 6) == 0) return createDarwinHostInfo(*this, Arch.c_str(), Platform.c_str(),