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)
commit3f727a8f3a5e1c2e811e1da5fdcd654015c89815
tree731f5ab2bf68f14fbf4ab5b9607439ffcc7dfd97
parente2cc92ce284719b80deb46511ca10682adeca03e
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.

llvm-svn: 327543
clang/lib/CodeGen/CodeGenModule.cpp
clang/lib/CodeGen/ItaniumCXXABI.cpp
clang/test/CodeGenCXX/windows-itanium-exceptions.cpp