summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-11-13 04:45:41 +0000
committerAnders Carlsson <andersca@mac.com>2009-11-13 04:45:41 +0000
commite828c369335871bfe49b1cf07f01faf95304c299 (patch)
tree39da2fb12aa6b836d17c607b8b7ac4cf01344838 /clang/lib/CodeGen/CodeGenFunction.h
parent78cfaa9e5688debc8a435e2696011ed5c52b5d2e (diff)
downloadbcm5719-llvm-e828c369335871bfe49b1cf07f01faf95304c299.tar.gz
bcm5719-llvm-e828c369335871bfe49b1cf07f01faf95304c299.zip
Add a special BuildVirtualCall that's going to be used for building calls to destructors. This is needed because when compiling:
struct A { virtual ~A(); }; void f(A* a) { delete a; } A's deleting destructor should be called. llvm-svn: 87083
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index f42376b6232..1b1f03424d8 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -883,8 +883,11 @@ public:
const Decl *TargetDecl = 0);
RValue EmitCallExpr(const CallExpr *E);
- llvm::Value *BuildVirtualCall(const CXXMethodDecl *MD, llvm::Value *&This,
+ llvm::Value *BuildVirtualCall(const CXXMethodDecl *MD, llvm::Value *This,
const llvm::Type *Ty);
+ llvm::Value *BuildVirtualCall(const CXXDestructorDecl *DD, CXXDtorType Type,
+ llvm::Value *&This, const llvm::Type *Ty);
+
RValue EmitCXXMemberCall(const CXXMethodDecl *MD,
llvm::Value *Callee,
llvm::Value *This,
OpenPOWER on IntegriCloud