aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/PPCSubtarget.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-08-05 21:25:13 +0000
committerChris Lattner <sabre@nondot.org>2005-08-05 21:25:13 +0000
commitba253651402f5d12172b3feed8909e28d01b7e1d (patch)
tree1ed47de3423a4070e0dc1c7869710c2e1ab7dd7c /lib/Target/PowerPC/PPCSubtarget.cpp
parent7f9b4e9044699b38de56960ad4544f80f84da875 (diff)
Enable gp optimizations by default when available, even when a target triple
is available, since the target triple doesn't specify whether to use gpopts or not. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22685 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCSubtarget.cpp')
-rw-r--r--lib/Target/PowerPC/PPCSubtarget.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/PPCSubtarget.cpp b/lib/Target/PowerPC/PPCSubtarget.cpp
index 4fae1a2d1d..3bfa7a6eef 100644
--- a/lib/Target/PowerPC/PPCSubtarget.cpp
+++ b/lib/Target/PowerPC/PPCSubtarget.cpp
@@ -43,6 +43,9 @@ PPCSubtarget::PPCSubtarget(const Module &M)
const std::string& TT = M.getTargetTriple();
if (TT.length() > 5) {
isDarwin = TT.find("darwin") != std::string::npos;
+#if defined(__APPLE__)
+ isGigaProcessor = IsGP();
+#endif
} else if (TT.empty()) {
#if defined(_POWER)
isAIX = true;