aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver/Driver.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-03-18 04:41:46 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-03-18 04:41:46 +0000
commitc811b6c5e3ad403c535fba25a03c956599ff27a5 (patch)
tree16e9658cd4e8ee4bb562f430605b8594502c064b /lib/Driver/Driver.cpp
parent8cc9d08eb8b2652ca939d724ab64dec906e418a0 (diff)
Driver: Add two normalizations for powerpc.
- PR3830 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67166 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Driver.cpp')
-rw-r--r--lib/Driver/Driver.cpp2
1 files changed, 2 insertions, 0 deletions
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(),