diff options
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.cpp')
-rw-r--r-- | clang/lib/CodeGen/CGVTables.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/clang/lib/CodeGen/CGVTables.cpp b/clang/lib/CodeGen/CGVTables.cpp index 7a5c6cfe655..275594237a5 100644 --- a/clang/lib/CodeGen/CGVTables.cpp +++ b/clang/lib/CodeGen/CGVTables.cpp @@ -49,11 +49,6 @@ llvm::Constant *CodeGenModule::GetAddrOfThunk(GlobalDecl GD, /*DontDefer=*/true, /*IsThunk=*/true); } -static void setThunkVisibility(CodeGenModule &CGM, const CXXMethodDecl *MD, - const ThunkInfo &Thunk, llvm::Function *Fn) { - CGM.setGVProperties(Fn, MD); -} - static void setThunkProperties(CodeGenModule &CGM, const ThunkInfo &Thunk, llvm::Function *ThunkFn, bool ForVTable, GlobalDecl GD) { @@ -62,8 +57,7 @@ static void setThunkProperties(CodeGenModule &CGM, const ThunkInfo &Thunk, !Thunk.Return.isEmpty()); // Set the right visibility. - const CXXMethodDecl *MD = cast<CXXMethodDecl>(GD.getDecl()); - setThunkVisibility(CGM, MD, Thunk, ThunkFn); + CGM.setGVProperties(ThunkFn, cast<CXXMethodDecl>(GD.getDecl())); if (CGM.supportsCOMDAT() && ThunkFn->isWeakForLinker()) ThunkFn->setComdat(CGM.getModule().getOrInsertComdat(ThunkFn->getName())); |