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 | 29536fcbd5690ef39ea0b6d81b14eec51920ea05 (patch) | |
tree | ca74059d38487654d954aa1c15fc08cfc26cf19e /clang/lib/Driver/Tools.cpp | |
parent | 7c88d2ae0f574f16648d726ab92cec7b289fb416 (diff) | |
download | bcm5719-llvm-29536fcbd5690ef39ea0b6d81b14eec51920ea05.tar.gz bcm5719-llvm-29536fcbd5690ef39ea0b6d81b14eec51920ea05.zip |
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
llvm-svn: 161444
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r-- | clang/lib/Driver/Tools.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp index a0963824000..fcd61b7e0b6 100644 --- a/clang/lib/Driver/Tools.cpp +++ b/clang/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); } |