diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-12 00:21:46 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-12 00:21:46 +0000 |
commit | fba5cb12adbe95d79855e91db018b863ce48387e (patch) | |
tree | 5f9130da4710f88979d36ee5520d5a9326add574 /lib/Basic/Targets.cpp | |
parent | bbce49b9e5c6d7f05926b89f8e6fd235ae01c250 (diff) |
Move some ObjC preprocessor definitions into
InitializePredefinedMacros().
- Also now properly wired to -fobjc-gc, -fnext-runtime.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54661 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Targets.cpp')
-rw-r--r-- | lib/Basic/Targets.cpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/Basic/Targets.cpp b/lib/Basic/Targets.cpp index bc35d7fe8e..d4ec04835c 100644 --- a/lib/Basic/Targets.cpp +++ b/lib/Basic/Targets.cpp @@ -53,23 +53,8 @@ public: Define(Defs, "linux"); #endif - if (1) { // FIXME: -fobjc-gc controls this. - Define(Defs, "__weak", ""); - Define(Defs, "__strong", ""); - } else { - Define(Defs, "__weak", "__attribute__((objc_gc(weak)))"); - Define(Defs, "__strong", "__attribute__((objc_gc(strong)))"); - Define(Defs, "__OBJC_GC__"); - } - - // darwin_constant_cfstrings controls this. - Define(Defs, "__CONSTANT_CFSTRINGS__"); - if (0) // darwin_pascal_strings Define(Defs, "__PASCAL_STRINGS__"); - - if (0) // FIXME: -fnext-runtime controls this - Define(Defs, "__NEXT_RUNTIME__"); } }; @@ -86,15 +71,6 @@ public: Define(Defs, "__SUN__"); Define(Defs, "__SOLARIS__"); #endif - - if (1) {// -fobjc-gc controls this. - Define(Defs, "__weak", ""); - Define(Defs, "__strong", ""); - } else { - Define(Defs, "__weak", "__attribute__((objc_gc(weak)))"); - Define(Defs, "__strong", "__attribute__((objc_gc(strong)))"); - Define(Defs, "__OBJC_GC__"); - } } }; |