diff options
author | Bob Wilson <bob.wilson@apple.com> | 2012-08-07 19:58:00 +0000 |
---|---|---|
committer | Bob Wilson <bob.wilson@apple.com> | 2012-08-07 19:58:00 +0000 |
commit | a7635f115ed4fdc5f7982989d67743105dd530cf (patch) | |
tree | df6a5abc1da82b2f6da4ef8d667b2fd38e38691a /lib/Driver/Tools.cpp | |
parent | 6e53137f447a455ccddc2cae5aa000d56fe4b50b (diff) |
Don't complain about -fobjc-link-runtime being unused with -fobjc-arc.
If you build with -fobjc-arc, then -fobjc-link-runtime is implied but we
don't need to warn about it being unused in that case. rdar://12039965
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@161444 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Driver/Tools.cpp')
-rw-r--r-- | lib/Driver/Tools.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index a096382400..fcd61b7e0b 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -174,8 +174,10 @@ static bool isObjCAutoRefCount(const ArgList &Args) { /// \brief Determine whether we are linking the ObjC runtime. static bool isObjCRuntimeLinked(const ArgList &Args) { - if (isObjCAutoRefCount(Args)) + if (isObjCAutoRefCount(Args)) { + Args.ClaimAllArgs(options::OPT_fobjc_link_runtime); return true; + } return Args.hasArg(options::OPT_fobjc_link_runtime); } |