From c811b6c5e3ad403c535fba25a03c956599ff27a5 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 18 Mar 2009 04:41:46 +0000 Subject: [PATCH] Driver: Add two normalizations for powerpc. - PR3830 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67166 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Driver/Driver.cpp | 2 ++ 1 file changed, 2 insertions(+) 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(), -- 2.50.1