summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Compilation.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2013-02-26 19:33:14 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2013-02-26 19:33:14 +0000
commit3a52c44865a7276647a0b05d46e991e3c3a4517d (patch)
treea4bcfa5b91c3ecdbd764b3e3c5a7ce1d54f003af /clang/lib/Driver/Compilation.cpp
parent58f546cd157a528a7472a77baca5f665c1454be9 (diff)
downloadbcm5719-llvm-3a52c44865a7276647a0b05d46e991e3c3a4517d.tar.gz
bcm5719-llvm-3a52c44865a7276647a0b05d46e991e3c3a4517d.zip
Use the most recent decl in getExplicitVisibility.
Now that implicitly hidden template arguments can make an instantiation hidden, it is important to look at more than just the canonical decl of the argument in order to see if an attribute is available in a more recent decl. This has the disadvantage of exposing when getExplicitVisibility is called, but lets us handle cases like template <typename T> struct __attribute__((visibility("default"))) barT { static void zed() {} }; class foo; class __attribute__((visibility("default"))) foo; template struct barT<foo>; llvm-svn: 176112
Diffstat (limited to 'clang/lib/Driver/Compilation.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud