move the linux predefined macro definition to the TargetInfo, where it really belongs

llvm-svn: 53149
This commit is contained in:
Nuno Lopes 2008-07-05 19:32:25 +00:00
parent c9c3f49993
commit 3da38fd145
2 changed files with 5 additions and 5 deletions

View File

@ -48,6 +48,11 @@ public:
Define(Defs, "__APPLE__");
Define(Defs, "__MACH__");
#endif
/* FIXME. we may also need to distinguish between darwin and linux targets */
#ifdef linux
Define(Defs, "linux");
#endif
if (1) {// -fobjc-gc controls this.
Define(Defs, "__weak", "");

View File

@ -433,11 +433,6 @@ static void InitializePredefinedMacros(Preprocessor &PP,
DefineBuiltinMacro(Buf, "__FINITE_MATH_ONLY__=0");
DefineBuiltinMacro(Buf, "__NO_INLINE__=1");
DefineBuiltinMacro(Buf, "__PIC__=1");
/* FIXME: this check should be moved to the configure process */
#ifdef linux
DefineBuiltinMacro(Buf, "linux=1");
#endif
if (PP.getLangOptions().CPlusPlus) {