]> granicus.if.org Git - clang/commitdiff
Driver: Add two normalizations for powerpc.
authorDaniel Dunbar <daniel@zuster.org>
Wed, 18 Mar 2009 04:41:46 +0000 (04:41 +0000)
committerDaniel Dunbar <daniel@zuster.org>
Wed, 18 Mar 2009 04:41:46 +0000 (04:41 +0000)
 - PR3830

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@67166 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Driver/Driver.cpp

index 84f3428c62846c0287d119244e7059ec3e6237c3..b41c2fa96e6c6bf0358b92fd6d3c0e64427fe45e 100644 (file)
@@ -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(),