aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorArthur Eubanks <aeubanks@google.com>2022-06-15 09:44:43 -0700
committerArthur Eubanks <aeubanks@google.com>2022-06-16 09:38:14 -0700
commita70b39abffb42eb85fd2dd7960ec9dc7ae38510c (patch)
tree9e8dedc24fa27ebd88c49643165986ff10ad6a38 /clang/lib/CodeGen/CodeGenModule.h
parent046ebeb60504abfb053c24c1ee5ab6747cfa5a08 (diff)
downloadllvm-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.h8
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