Move all of the logic for __DEPRECATED to the driver based on comments

from dgregor.

llvm-svn: 130066
This commit is contained in:
Chandler Carruth
2011-04-23 19:48:40 +00:00
parent dbbdd2fe50
commit 30483fb188
7 changed files with 28 additions and 25 deletions

View File

@@ -318,9 +318,10 @@ static void InitializePredefinedMacros(const TargetInfo &TI,
if (LangOpts.SjLjExceptions)
Builder.defineMacro("__USING_SJLJ_EXCEPTIONS__");
if (LangOpts.Deprecated)
Builder.defineMacro("__DEPRECATED");
if (LangOpts.CPlusPlus) {
if (LangOpts.Deprecated)
Builder.defineMacro("__DEPRECATED");
Builder.defineMacro("__GNUG__", "4");
Builder.defineMacro("__GXX_WEAK__");
if (LangOpts.GNUMode)