]> granicus.if.org Git - clang/commit
Don't create hidden dllimport global values.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 24 Jan 2018 18:58:32 +0000 (18:58 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 24 Jan 2018 18:58:32 +0000 (18:58 +0000)
commit28825cffe931202bdef523a652b652e1ffc26eaf
tree6d07deb038558ed07d4313ad68a9935bd3b2723d
parent417df0a48dd09d405d4558329b831e69665af11d
Don't create hidden dllimport global values.

Hidden visibility is almost the opposite of dllimport. We were
producing them before (dllimport wins in the existing llvm
implementation), but now the llvm verifier produces an error.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@323361 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
test/CodeGenCXX/hidden-dllimport.cpp [new file with mode: 0644]