aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/CodeGen/CGRtti.cpp1
-rw-r--r--test/CodeGenCXX/rtti.cpp3
2 files changed, 4 insertions, 0 deletions
diff --git a/lib/CodeGen/CGRtti.cpp b/lib/CodeGen/CGRtti.cpp
index 9ebb908173..4a9779a9b2 100644
--- a/lib/CodeGen/CGRtti.cpp
+++ b/lib/CodeGen/CGRtti.cpp
@@ -165,6 +165,7 @@ public:
OGV->replaceAllUsesWith(NewPtr);
OGV->eraseFromParent();
}
+ GV->setVisibility(llvm::GlobalVariable::HiddenVisibility);
return llvm::ConstantExpr::getBitCast(GV, Int8PtrTy);
}
diff --git a/test/CodeGenCXX/rtti.cpp b/test/CodeGenCXX/rtti.cpp
index b64071c65f..f496d7af2f 100644
--- a/test/CodeGenCXX/rtti.cpp
+++ b/test/CodeGenCXX/rtti.cpp
@@ -57,6 +57,9 @@ class test1_D : public test1_B7 {
// CHECK-NEXT: .quad __ZTIi
// CHECK-NEXT: .quad __ZTI7test3_I
+// CHECK: .private_extern __ZTIFvvE
+// CHECK: .globl __ZTIFvvE
+// CHECK: .weak_definition __ZTIFvvE
// CHECK: __ZTIFvvE:
// CHECK-NEXT: .quad (__ZTVN10__cxxabiv120__function_type_infoE) + 16
// CHECK-NEXT: .quad __ZTSFvvE