summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.h
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2010-08-04 08:34:44 +0000
committerJohn McCall <rjmccall@apple.com>2010-08-04 08:34:44 +0000
commite16adc2b1eb93d17adec3ba280263a3117294f35 (patch)
treebf40c73a0b46c8f8a3bf374310b2fc287f998097 /clang/lib/CodeGen/CodeGenModule.h
parentc36df4d0b73a1aee53805b8fd1c223a89824ceb4 (diff)
downloadbcm5719-llvm-e16adc2b1eb93d17adec3ba280263a3117294f35.tar.gz
bcm5719-llvm-e16adc2b1eb93d17adec3ba280263a3117294f35.zip
Emit standard-library RTTI with external linkage, not weak_odr.
Apply hidden visibility to most RTTI; libstdc++ does not rely on exact pointer equality for the type info (just the type info names). Apply the same optimization to RTTI that we do to vtables. Fixes PR5962. llvm-svn: 110192
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.h b/clang/lib/CodeGen/CodeGenModule.h
index 2cb345a8a23..a4d8368d4d9 100644
--- a/clang/lib/CodeGen/CodeGenModule.h
+++ b/clang/lib/CodeGen/CodeGenModule.h
@@ -270,6 +270,11 @@ public:
/// GlobalValue.
void setGlobalVisibility(llvm::GlobalValue *GV, const Decl *D) const;
+ /// setTypeVisibility - Set the visibility for the given global
+ /// value which holds information about a type.
+ void setTypeVisibility(llvm::GlobalValue *GV, const CXXRecordDecl *D,
+ bool IsForRTTI) const;
+
llvm::Constant *GetAddrOfGlobal(GlobalDecl GD) {
if (isa<CXXConstructorDecl>(GD.getDecl()))
return GetAddrOfCXXConstructor(cast<CXXConstructorDecl>(GD.getDecl()),
OpenPOWER on IntegriCloud