diff options
| author | Nuno Lopes <nunoplopes@sapo.pt> | 2008-07-05 19:32:25 +0000 |
|---|---|---|
| committer | Nuno Lopes <nunoplopes@sapo.pt> | 2008-07-05 19:32:25 +0000 |
| commit | 3da38fd14581e6b26bd825ed058d14e74950e38f (patch) | |
| tree | 93c4e982104278dbfb16f9db878398692fdacfbe /clang | |
| parent | c9c3f49993fd2dbe44c6f73e192aadccc1521a9d (diff) | |
| download | bcm5719-llvm-3da38fd14581e6b26bd825ed058d14e74950e38f.tar.gz bcm5719-llvm-3da38fd14581e6b26bd825ed058d14e74950e38f.zip | |
move the linux predefined macro definition to the TargetInfo, where it really belongs
llvm-svn: 53149
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/lib/Basic/Targets.cpp | 5 | ||||
| -rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 5 |
2 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/Basic/Targets.cpp b/clang/lib/Basic/Targets.cpp index 4cf7e7bb8aa..ac48e23f759 100644 --- a/clang/lib/Basic/Targets.cpp +++ b/clang/lib/Basic/Targets.cpp @@ -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", ""); diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 577e64a5cfe..32ee8f0c817 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/lib/Lex/Preprocessor.cpp @@ -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) { |

