]> granicus.if.org Git - clang/commit
Add support for -fvisibility-ms-compat.
authorJohn McCall <rjmccall@apple.com>
Tue, 19 Feb 2013 01:57:35 +0000 (01:57 +0000)
committerJohn McCall <rjmccall@apple.com>
Tue, 19 Feb 2013 01:57:35 +0000 (01:57 +0000)
commita880b19aa6ef1dc95936f5de052be7a7d6ee6814
tree5bfc6bbc9923a73e72a917920105bf1fb1f91df1
parent0b5a483c8f5d8563ebc6ad5e311f2fadb734058d
Add support for -fvisibility-ms-compat.

We treat this as an alternative to -fvisibility=<?>
which changes the default value visibility to "hidden"
and the default type visibility to "default".

Expose a -cc1 option for changing the default type
visibility, repurposing -fvisibility as the default
value visibility option (also setting type visibility
from it in the absence of a specific option).

rdar://13079314

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@175480 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/LangOptions.def
include/clang/Driver/CC1Options.td
include/clang/Driver/Options.td
lib/AST/Decl.cpp
lib/Driver/Tools.cpp
lib/Frontend/CompilerInvocation.cpp
test/CodeGenCXX/visibility-ms-compat.cpp [new file with mode: 0644]
test/Driver/visibility.cpp [new file with mode: 0644]