diff options
author | Anders Carlsson <andersca@mac.com> | 2009-05-31 01:40:14 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2009-05-31 01:40:14 +0000 |
commit | a00703dccbdc6cc4a293db38477dea7db5538c7e (patch) | |
tree | 17dba5bbd187b1b7f5407d0f62e10c5039f18241 /lib/CodeGen/CGCXX.cpp | |
parent | 543ac0c4d24a81fb2b7b6e83370aa8e4cbc93054 (diff) |
Add a new function for emitting new functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@72656 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGCXX.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CodeGen/CGCXX.cpp b/lib/CodeGen/CGCXX.cpp index 3186ccde66..805805c663 100644 --- a/lib/CodeGen/CGCXX.cpp +++ b/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. |