Move a couple Darwin-specific defines into getDarwinDefines.

llvm-svn: 72900
This commit is contained in:
Eli Friedman 2009-06-04 23:00:29 +00:00
parent d6ac8bec21
commit fd4b1559db
2 changed files with 5 additions and 5 deletions

View File

@ -182,6 +182,11 @@ static void getDarwinDefines(std::vector<char> &Defs, const LangOptions &Opts) {
Define(Defs, "__strong", "");
else
Define(Defs, "__strong", "__attribute__((objc_gc(strong)))");
if (Opts.Static)
Define(Defs, "__STATIC__");
else
Define(Defs, "__DYNAMIC__");
}
static void getDarwinOSXDefines(std::vector<char> &Defs, const char *Triple) {

View File

@ -403,11 +403,6 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
// command line options or something.
DefineBuiltinMacro(Buf, "__FINITE_MATH_ONLY__=0");
if (LangOpts.Static)
DefineBuiltinMacro(Buf, "__STATIC__=1");
else
DefineBuiltinMacro(Buf, "__DYNAMIC__=1");
if (LangOpts.GNUInline)
DefineBuiltinMacro(Buf, "__GNUC_GNU_INLINE__=1");
else