diff options
author | Chris Lattner <sabre@nondot.org> | 2009-02-05 07:19:24 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-02-05 07:19:24 +0000 |
commit | d427ad4cceab4481be0ac5cc2a190148ccc181e2 (patch) | |
tree | 80a44697aef5a7d97ebc05350bdd2b03d1215805 /lib/Basic/Targets.cpp | |
parent | 13e81737a433b23f8c662d10d1d57356122a8caa (diff) |
fix some differences between apple gcc and clang on darwin/x86-32.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@63846 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index c3e1a68d20..d79787615a 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -120,6 +120,9 @@ static bool getDarwinNumber(const char *Triple, unsigned &Maj, unsigned &Min) { static void getDarwinDefines(std::vector<char> &Defs, const char *Triple) { Define(Defs, "__APPLE__"); Define(Defs, "__MACH__"); + Define(Defs, "OBJC_NEW_PROPERTIES"); + + // FIXME: OBJC_ZEROCOST_EXCEPTIONS when using zero cost eh. // Figure out which "darwin number" the target triple is. "darwin9" -> 10.5. unsigned Maj, Min; @@ -563,6 +566,7 @@ public: DarwinI386TargetInfo(const std::string& triple) : X86_32TargetInfo(triple) { LongDoubleWidth = 128; LongDoubleAlign = 128; + PtrDiffType = SignedInt; DescriptionString = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-" "i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-" "a0:0:64-f80:128:128"; |