[PATCH] D127876: [clang] Don't emit type test/assume for virtual classes that should never participate in WPD

Peter Collingbourne via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 15 16:46:24 PDT 2022


pcc accepted this revision.
pcc added a comment.
This revision is now accepted and ready to land.

Okay, it seems reasonable enough to have the `[[clang::lto_visibility_public]]` attribute override the `--lto-whole-program-visibility` flag.

What I'm not sure about though is whether `__declspec(uuid)` and `std`/`stdext` in `/MT`/`/MTd` should also override it.

Fortunately we don't need to solve that now because those are Windows-specific attributes/features and we don't support passing  `--lto-whole-program-visibility` to Windows linkers.

So LGTM if you only mention `[[clang::lto_visibility_public]]` in your change to the documentation.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D127876/new/

https://reviews.llvm.org/D127876



More information about the cfe-commits mailing list