[cfe-commits] r44622 - /cfe/trunk/Driver/Targets.cpp

Chris Lattner sabre at nondot.org
Wed Dec 5 10:41:06 PST 2007


Author: lattner
Date: Wed Dec  5 12:41:05 2007
New Revision: 44622

URL: http://llvm.org/viewvc/llvm-project?rev=44622&view=rev
Log:
I'm apparently the only sad lonely ppc user left :)

Modified:
    cfe/trunk/Driver/Targets.cpp

Modified: cfe/trunk/Driver/Targets.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/Targets.cpp?rev=44622&r1=44621&r2=44622&view=diff

==============================================================================
--- cfe/trunk/Driver/Targets.cpp (original)
+++ cfe/trunk/Driver/Targets.cpp Wed Dec  5 12:41:05 2007
@@ -674,9 +674,9 @@
 /// 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);





More information about the cfe-commits mailing list