summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2010-04-24 21:06:20 +0000
committerAnders Carlsson <andersca@mac.com>2010-04-24 21:06:20 +0000
commitd829a02514e05c88163ae935494800b1a3c12041 (patch)
treeaf277400a34dabe441b5ab979cc0d786e15b7a25 /clang/lib/CodeGen/CodeGenFunction.h
parentc779e995402ac3e6dc10655482b5e0be34dfa23f (diff)
downloadbcm5719-llvm-d829a02514e05c88163ae935494800b1a3c12041.tar.gz
bcm5719-llvm-d829a02514e05c88163ae935494800b1a3c12041.zip
Add a new GetAddressOfBaseClass overload that takes a base path and. Use it for derived-to-base casts.
llvm-svn: 102270
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index b421a38371e..0707ada38c5 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -787,7 +787,11 @@ public:
const CXXRecordDecl *ClassDecl,
const CXXRecordDecl *BaseClassDecl,
bool NullCheckValue);
-
+ llvm::Value *GetAddressOfBaseClass(llvm::Value *Value,
+ const CXXRecordDecl *ClassDecl,
+ const CXXBaseSpecifierArray &BasePath,
+ bool NullCheckValue);
+
llvm::Value *GetAddressOfDerivedClass(llvm::Value *Value,
const CXXRecordDecl *ClassDecl,
const CXXRecordDecl *DerivedClassDecl,
OpenPOWER on IntegriCloud