summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGCXX.cpp
diff options
context:
space:
mode:
authorAnders Carlsson <andersca@mac.com>2009-05-31 01:40:14 +0000
committerAnders Carlsson <andersca@mac.com>2009-05-31 01:40:14 +0000
commit4a7b49b56a6b886cfc1aee116b3199201307d8e7 (patch)
treef29a49f094820306e720e3baa07dd8b0a7f0e70b /clang/lib/CodeGen/CGCXX.cpp
parent8eb93e72f7402ec7eb5787f7a91123eac4d06466 (diff)
downloadbcm5719-llvm-4a7b49b56a6b886cfc1aee116b3199201307d8e7.tar.gz
bcm5719-llvm-4a7b49b56a6b886cfc1aee116b3199201307d8e7.zip
Add a new function for emitting new functions.
llvm-svn: 72656
Diffstat (limited to 'clang/lib/CodeGen/CGCXX.cpp')
-rw-r--r--clang/lib/CodeGen/CGCXX.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGCXX.cpp b/clang/lib/CodeGen/CGCXX.cpp
index 3186ccde666..805805c6632 100644
--- a/clang/lib/CodeGen/CGCXX.cpp
+++ b/clang/lib/CodeGen/CGCXX.cpp
@@ -226,6 +226,11 @@ CodeGenFunction::EmitCXXExprWithTemporaries(const CXXExprWithTemporaries *E,
return RV;
}
+llvm::Value *CodeGenFunction::EmitCXXNewExpr(const CXXNewExpr *E) {
+ ErrorUnsupported(E, "new expression");
+ return llvm::UndefValue::get(ConvertType(E->getType()));
+}
+
static bool canGenerateCXXstructor(const CXXRecordDecl *RD,
ASTContext &Context) {
// The class has base classes - we don't support that right now.
OpenPOWER on IntegriCloud