aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/X86/X86Subtarget.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-08-01 23:45:51 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-08-01 23:45:51 +0000
commit09e1379cd64a82e37baac5b82e4e42f5c8de788f (patch)
tree68d97d3babcc18a54080ecb62f6aec16eee36b50 /lib/Target/X86/X86Subtarget.cpp
parent7031713eacafd02ce263cef8e884676bd4c50894 (diff)
downloadexternal_llvm-09e1379cd64a82e37baac5b82e4e42f5c8de788f.zip
external_llvm-09e1379cd64a82e37baac5b82e4e42f5c8de788f.tar.gz
external_llvm-09e1379cd64a82e37baac5b82e4e42f5c8de788f.tar.bz2
Mac OS X X86-64 low 4G address not available.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40701 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86/X86Subtarget.cpp')
-rw-r--r--lib/Target/X86/X86Subtarget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Target/X86/X86Subtarget.cpp b/lib/Target/X86/X86Subtarget.cpp
index 1a75e04..51406c3 100644
--- a/lib/Target/X86/X86Subtarget.cpp
+++ b/lib/Target/X86/X86Subtarget.cpp
@@ -225,6 +225,7 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
// FIXME: this is a known good value for Yonah. How about others?
, MinRepStrSizeThreshold(128)
, Is64Bit(is64Bit)
+ , HasLow4GUserAddress(true)
, TargetType(isELF) { // Default to ELF unless otherwise specified.
// Determine default and user specified characteristics
@@ -285,6 +286,9 @@ X86Subtarget::X86Subtarget(const Module &M, const std::string &FS, bool is64Bit)
}
}
+ if (TargetType == isDarwin && Is64Bit)
+ HasLow4GUserAddress = false;
+
if (TargetType == isDarwin ||
TargetType == isCygwin ||
TargetType == isMingw ||