]> granicus.if.org Git - clang/commitdiff
I'm apparently the only sad lonely ppc user left :)
authorChris Lattner <sabre@nondot.org>
Wed, 5 Dec 2007 18:41:05 +0000 (18:41 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 5 Dec 2007 18:41:05 +0000 (18:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44622 91177308-0d34-0410-b5e6-96231b3b80d8

Driver/Targets.cpp

index c463fb9d821d4fe0c3484e4fbc5f9a35d6bb6701..336beb925d07f84c9507571c618247966fed20dd 100644 (file)
@@ -674,9 +674,9 @@ static inline bool IsX86(const std::string& TT) {
 /// CreateTarget - Create the TargetInfoImpl object for the specified target
 /// enum value.
 static TargetInfoImpl *CreateTarget(const std::string& T) {
-  if (T.find("ppc-") == 0)
+  if (T.find("ppc-") == 0 || T.find("powerpc-") == 0)
     return new DarwinPPCTargetInfo(T);
-  else if (T.find("ppc64-") == 0)
+  else if (T.find("ppc64-") == 0 || T.find("powerpc64-") == 0)
     return new DarwinPPC64TargetInfo(T);
   else if (T.find("x86_64-") == 0)
     return new DarwinX86_64TargetInfo(T);