summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CXXABI.h
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-03-11 18:36:39 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-03-11 18:36:39 +0000
commitdfa6d2067c8c782c83be69a61fe59a0240535df6 (patch)
tree6223cf5bbe42de63a13b9301deb125b41e56de86 /clang/lib/AST/CXXABI.h
parent4320495319466c12543985ff7e653aedf81f8f36 (diff)
downloadbcm5719-llvm-dfa6d2067c8c782c83be69a61fe59a0240535df6.tar.gz
bcm5719-llvm-dfa6d2067c8c782c83be69a61fe59a0240535df6.zip
MS ABI: Implement copy-ctor closures, finish implementing throw
This adds support for copy-constructor closures. These are generated when the C++ runtime has to call a copy-constructor with a particular calling convention or with default arguments substituted in to the call. Because the runtime has no mechanism to call the function with a different calling convention or know-how to evaluate the default arguments at run-time, we create a thunk which will do all the appropriate work and package it in a way the runtime can use. Differential Revision: http://reviews.llvm.org/D8225 llvm-svn: 231952
Diffstat (limited to 'clang/lib/AST/CXXABI.h')
-rw-r--r--clang/lib/AST/CXXABI.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/AST/CXXABI.h b/clang/lib/AST/CXXABI.h
index 62c96f901e6..dad226474fa 100644
--- a/clang/lib/AST/CXXABI.h
+++ b/clang/lib/AST/CXXABI.h
@@ -21,6 +21,7 @@ namespace clang {
class ASTContext;
class CXXConstructorDecl;
+class Expr;
class MemberPointerType;
class MangleNumberingContext;
@@ -50,6 +51,12 @@ public:
/// Retrieves the mapping from class to copy constructor for this C++ ABI.
virtual const CXXConstructorDecl *
getCopyConstructorForExceptionObject(CXXRecordDecl *) = 0;
+
+ virtual void addDefaultArgExprForConstructor(const CXXConstructorDecl *CD,
+ unsigned ParmIdx, Expr *DAE) = 0;
+
+ virtual Expr *getDefaultArgExprForConstructor(const CXXConstructorDecl *CD,
+ unsigned ParmIdx) = 0;
};
/// Creates an instance of a C++ ABI class.
OpenPOWER on IntegriCloud