diff options
author | Arthur Eubanks <aeubanks@google.com> | 2022-06-15 09:44:43 -0700 |
---|---|---|
committer | Arthur Eubanks <aeubanks@google.com> | 2022-06-16 09:38:14 -0700 |
commit | a70b39abffb42eb85fd2dd7960ec9dc7ae38510c (patch) | |
tree | 9e8dedc24fa27ebd88c49643165986ff10ad6a38 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 046ebeb60504abfb053c24c1ee5ab6747cfa5a08 (diff) | |
download | llvm-a70b39abffb42eb85fd2dd7960ec9dc7ae38510c.zip llvm-a70b39abffb42eb85fd2dd7960ec9dc7ae38510c.tar.gz llvm-a70b39abffb42eb85fd2dd7960ec9dc7ae38510c.tar.bz2 |
[clang] Don't emit type test/assume for virtual classes that should never participate in WPD
Reviewed By: pcc
Differential Revision: https://reviews.llvm.org/D127876
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenModule.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h index 779d94a..f5ae83a 100644 --- a/clang/lib/CodeGen/CodeGenModule.h +++ b/clang/lib/CodeGen/CodeGenModule.h @@ -1382,10 +1382,10 @@ public: /// optimization. bool HasHiddenLTOVisibility(const CXXRecordDecl *RD); - /// Returns whether the given record has public std LTO visibility - /// and therefore may not participate in (single-module) CFI and whole-program - /// vtable optimization. - bool HasLTOVisibilityPublicStd(const CXXRecordDecl *RD); + /// Returns whether the given record has public LTO visibility (regardless of + /// -lto-whole-program-visibility) and therefore may not participate in + /// (single-module) CFI and whole-program vtable optimization. + bool AlwaysHasLTOVisibilityPublic(const CXXRecordDecl *RD); /// Returns the vcall visibility of the given type. This is the scope in which /// a virtual function call could be made which ends up being dispatched to a |