]> granicus.if.org Git - clang/commit
Set dso_local on external rtti GVs.
authorRafael Espindola <rafael.espindola@gmail.com>
Wed, 14 Mar 2018 18:14:46 +0000 (18:14 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Wed, 14 Mar 2018 18:14:46 +0000 (18:14 +0000)
commitac11dcec21c6ff3761acdcf844e1cd6f377169ee
tree418c05450be60a4e5f4508f0e73d3b401a7a7f6d
parentd90fea180890aeb9fde1e2c57a00f5005896ef4b
Set dso_local on external rtti GVs.

In this particular case it would be possible to just add an else with
CGM.setDSOLocal(GV), but it seems better to have as many callers as
possible just call setGVProperties so that we can centralize the logic
there.

This patch then makes setGVProperties able to handle null Decls.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@327543 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenModule.cpp
lib/CodeGen/ItaniumCXXABI.cpp
test/CodeGenCXX/windows-itanium-exceptions.cpp