aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/CGRtti.cpp
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-11-18 02:53:28 +0000
committerMike Stump <mrs@apple.com>2009-11-18 02:53:28 +0000
commit066b983348e06a5f9dbbb72041077bbf1a0fb9c1 (patch)
tree035c05705d5b06cf6d9dc5c63c142d5badb1bf0a /lib/CodeGen/CGRtti.cpp
parent7ba107a1863ddfa1664555854f0d7bdb3c491c92 (diff)
Make _ZTI symbols hidden. This speeds up the dynamic linker.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@89185 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGRtti.cpp')
-rw-r--r--lib/CodeGen/CGRtti.cpp1
1 files changed, 1 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);
}