diff options
author | Anders Carlsson <andersca@mac.com> | 2009-09-10 23:43:36 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-09-10 23:43:36 +0000 |
commit | 555b4bb2749aea2ec8e2adc351a71ec1cb9bdc33 (patch) | |
tree | 40d6bbe97757b95d9ed04906c7b937856ccba07b /lib/CodeGen/CGCXX.cpp | |
parent | 4a6835e650ff24e19ce08a3bd347c0ad186777fd (diff) |
GlobalDecl doesn't have an explicit constructor anymore.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@81481 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 828892a241..e169881eec 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/lib/CodeGen/CGCXX.cpp @@ -227,7 +227,7 @@ RValue CodeGenFunction::EmitCXXMemberCallExpr(const CXXMemberCallExpr *CE) { = dyn_cast<CXXDestructorDecl>(MD)) Callee = CGM.GetAddrOfFunction(GlobalDecl(Destructor, Dtor_Complete), Ty); else - Callee = CGM.GetAddrOfFunction(GlobalDecl(MD), Ty); + Callee = CGM.GetAddrOfFunction(MD, Ty); return EmitCXXMemberCall(MD, Callee, This, CE->arg_begin(), CE->arg_end()); @@ -256,7 +256,7 @@ CodeGenFunction::EmitCXXOperatorMemberCallExpr(const CXXOperatorCallExpr *E, const llvm::Type *Ty = CGM.getTypes().GetFunctionType(CGM.getTypes().getFunctionInfo(MD), FPT->isVariadic()); - llvm::Constant *Callee = CGM.GetAddrOfFunction(GlobalDecl(MD), Ty); + llvm::Constant *Callee = CGM.GetAddrOfFunction(MD, Ty); llvm::Value *This = EmitLValue(E->getArg(0)).getAddress(); @@ -576,8 +576,7 @@ llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) { // Emit the call to new. RValue RV = EmitCall(CGM.getTypes().getFunctionInfo(NewFTy->getResultType(), NewArgs), - CGM.GetAddrOfFunction(GlobalDecl(NewFD)), - NewArgs, NewFD); + CGM.GetAddrOfFunction(NewFD), NewArgs, NewFD); // If an allocation function is declared with an empty exception specification // it returns null to indicate failure to allocate storage. [expr.new]p13. @@ -699,7 +698,7 @@ void CodeGenFunction::EmitCXXDeleteExpr(const CXXDeleteExpr *E) { // Emit the call to delete. EmitCall(CGM.getTypes().getFunctionInfo(DeleteFTy->getResultType(), DeleteArgs), - CGM.GetAddrOfFunction(GlobalDecl(DeleteFD)), + CGM.GetAddrOfFunction(DeleteFD), DeleteArgs, DeleteFD); EmitBlock(DeleteEnd); @@ -900,7 +899,7 @@ public: mi != e; ++mi) { const CXXMethodDecl *OMD = *mi; llvm::Constant *om; - om = CGM.GetAddrOfFunction(GlobalDecl(OMD), Ptr8Ty); + om = CGM.GetAddrOfFunction(OMD, Ptr8Ty); om = llvm::ConstantExpr::getBitCast(om, Ptr8Ty); for (Index_t i = 0, e = submethods.size(); @@ -964,8 +963,7 @@ public: ++mi) if (mi->isVirtual()) { const CXXMethodDecl *MD = *mi; - llvm::Constant *m = wrap(CGM.GetAddrOfFunction(GlobalDecl(MD), - Ptr8Ty)); + llvm::Constant *m = wrap(CGM.GetAddrOfFunction(MD, Ptr8Ty)); OverrideMethod(MD, m, MorallyVirtual, Offset); } } @@ -1440,7 +1438,7 @@ void CodeGenFunction::EmitClassAggrCopyAssignment(llvm::Value *Dest, const llvm::Type *LTy = CGM.getTypes().GetFunctionType(CGM.getTypes().getFunctionInfo(MD), FPT->isVariadic()); - llvm::Constant *Callee = CGM.GetAddrOfFunction(GlobalDecl(MD), LTy); + llvm::Constant *Callee = CGM.GetAddrOfFunction(MD, LTy); CallArgList CallArgs; // Push the this (Dest) ptr. @@ -1532,7 +1530,7 @@ void CodeGenFunction::EmitClassCopyAssignment( const llvm::Type *LTy = CGM.getTypes().GetFunctionType(CGM.getTypes().getFunctionInfo(MD), FPT->isVariadic()); - llvm::Constant *Callee = CGM.GetAddrOfFunction(GlobalDecl(MD), LTy); + llvm::Constant *Callee = CGM.GetAddrOfFunction(MD, LTy); CallArgList CallArgs; // Push the this (Dest) ptr. |