summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGVTables.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-02-28 00:14:18 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-02-28 00:14:18 +0000
commitbb333c26ed53aaa3fc1e9e0412fa07aa7b274342 (patch)
tree026d629ab98d9668b9b1bbad4a0847c74ceb0a14 /clang/lib/CodeGen/CGVTables.cpp
parente3498ec56284009a0909220fedab2b610cf831d0 (diff)
downloadbcm5719-llvm-bb333c26ed53aaa3fc1e9e0412fa07aa7b274342.tar.gz
bcm5719-llvm-bb333c26ed53aaa3fc1e9e0412fa07aa7b274342.zip
Inline trivial function. NFC.
llvm-svn: 326272
Diffstat (limited to 'clang/lib/CodeGen/CGVTables.cpp')
-rw-r--r--clang/lib/CodeGen/CGVTables.cpp8
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()));
OpenPOWER on IntegriCloud