summaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorKazu Hirata <kazu@google.com>2023-06-14 22:04:40 -0700
committerKazu Hirata <kazu@google.com>2023-06-14 22:04:40 -0700
commit8fd80d1d136685688ff49c9d80552bbb7addbda4 (patch)
treefcb38a4a3f81495b97e30cb58b7460fab0c98459 /clang/lib/CodeGen/CodeGenModule.cpp
parentab95a410dbc41d1d3c725446297debef642da116 (diff)
[CodeGen] Remove unused function GetOrCreateRTTIProxyGlobalVariable
The last use was removed by: commit 46f366494f3ca8cc98daa6fb4f29c7c446c176b6 Author: Fangrui Song <i@maskray.me> Date: Sat May 20 08:24:20 2023 -0700 This patch also removes RTTIProxyMap, which becomes unused once I remove GetOrCreateRTTIProxyGlobalVariable. Differential Revision: https://reviews.llvm.org/D152782
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
-rw-r--r--clang/lib/CodeGen/CodeGenModule.cpp16
1 files changed, 0 insertions, 16 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp
index dd8c384d1317..8b2fa5eaf5ba 100644
--- a/clang/lib/CodeGen/CodeGenModule.cpp
+++ b/clang/lib/CodeGen/CodeGenModule.cpp
@@ -2028,22 +2028,6 @@ CodeGenModule::getMostBaseClasses(const CXXRecordDecl *RD) {
return MostBases.takeVector();
}
-llvm::GlobalVariable *
-CodeGenModule::GetOrCreateRTTIProxyGlobalVariable(llvm::Constant *Addr) {
- auto It = RTTIProxyMap.find(Addr);
- if (It != RTTIProxyMap.end())
- return It->second;
-
- auto *FTRTTIProxy = new llvm::GlobalVariable(
- TheModule, Addr->getType(),
- /*isConstant=*/true, llvm::GlobalValue::PrivateLinkage, Addr,
- "__llvm_rtti_proxy");
- FTRTTIProxy->setUnnamedAddr(llvm::GlobalValue::UnnamedAddr::Global);
-
- RTTIProxyMap[Addr] = FTRTTIProxy;
- return FTRTTIProxy;
-}
-
void CodeGenModule::SetLLVMFunctionAttributesForDefinition(const Decl *D,
llvm::Function *F) {
llvm::AttrBuilder B(F->getContext());