Driver: only produce CFI -fvisibility= error when compiling.
authorPeter Collingbourne <peter@pcc.me.uk>
Thu, 28 Apr 2016 00:18:30 +0000 (00:18 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Thu, 28 Apr 2016 00:18:30 +0000 (00:18 +0000)
commitf10237b689db7afc3405e2fa4f1ba43bfee8b489
tree05aa736d17522090f3460ff58bcfb192b52ac64c
parent893110ecafee4113b24319f6d47b3ef341d9d803
Driver: only produce CFI -fvisibility= error when compiling.

The -fvisibility= flag only affects compile jobs, so there's no need to
error out because of it if we aren't compiling (e.g. if we are only linking).

llvm-svn: 267824
clang/lib/Driver/SanitizerArgs.cpp
clang/test/Driver/fsanitize.c