forked from OSchip/llvm-project
Move a couple Darwin-specific defines into getDarwinDefines.
llvm-svn: 72900
This commit is contained in:
parent
d6ac8bec21
commit
fd4b1559db
|
@ -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) {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue