aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-04-23 19:48:40 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-04-23 19:48:40 +0000
commitf8c247d247f9f7ab2bf4965677e6d056711c99d5 (patch)
tree54999eae5d265dd8ffb3c5542fdd977dced511df /lib/Frontend/CompilerInvocation.cpp
parent89ebaed91cca7fd296ec7804e4e9fb68949c1d0e (diff)
Move all of the logic for __DEPRECATED to the driver based on comments
from dgregor. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@130066 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--lib/Frontend/CompilerInvocation.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index daaaad0c2c..998ca8aa4a 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -694,8 +694,8 @@ static void LangOptsToArgs(const LangOptions &Opts,
Res.push_back("-funknown-anytype");
if (Opts.DelayedTemplateParsing)
Res.push_back("-fdelayed-template-parsing");
- if (!Opts.Deprecated)
- Res.push_back("-fno-deprecated-macro");
+ if (Opts.Deprecated)
+ Res.push_back("-fdeprecated-macro");
}
static void PreprocessorOptsToArgs(const PreprocessorOptions &Opts,