aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-12-05 18:41:05 +0000
committerChris Lattner <sabre@nondot.org>2007-12-05 18:41:05 +0000
commit82817ba18f2cf63708fc70a55ae458739e4feac4 (patch)
tree399728fcd71353bb38e9d62ec29cf0b25f404d8a
parentdb094a24e9a1efcd224d69ba34c5f396293605bc (diff)
I'm apparently the only sad lonely ppc user left :)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44622 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--Driver/Targets.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Driver/Targets.cpp b/Driver/Targets.cpp
index c463fb9d82..336beb925d 100644
--- a/Driver/Targets.cpp
+++ b/Driver/Targets.cpp
@@ -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);