summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorVedant Kumar <vsk@apple.com>2017-02-24 01:15:19 +0000
committerVedant Kumar <vsk@apple.com>2017-02-24 01:15:19 +0000
commit7f809b2fbd0c3a0fee44e3805955a1b0c76f3ce1 (patch)
treeef1505d7c247c6e46721fc520b3de6b6e814c6ad /clang/lib/CodeGen/CodeGenFunction.h
parentd75fd0988d1e8f2393363ebdd31fc0325a4ba82a (diff)
downloadbcm5719-llvm-7f809b2fbd0c3a0fee44e3805955a1b0c76f3ce1.tar.gz
bcm5719-llvm-7f809b2fbd0c3a0fee44e3805955a1b0c76f3ce1.zip
[profiling] PR31992: Don't skip interesting non-base constructors
Fix the fact that we don't assign profile counters to constructors in classes with virtual bases, or constructors with variadic parameters. Differential Revision: https://reviews.llvm.org/D30131 llvm-svn: 296062
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r--clang/lib/CodeGen/CodeGenFunction.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h
index 3bb80887a4d..72105802b45 100644
--- a/clang/lib/CodeGen/CodeGenFunction.h
+++ b/clang/lib/CodeGen/CodeGenFunction.h
@@ -1564,6 +1564,8 @@ public:
SourceLocation Loc = SourceLocation(),
SourceLocation StartLoc = SourceLocation());
+ static bool IsConstructorDelegationValid(const CXXConstructorDecl *Ctor);
+
void EmitConstructorBody(FunctionArgList &Args);
void EmitDestructorBody(FunctionArgList &Args);
void emitImplicitAssignmentOperatorBody(FunctionArgList &Args);
OpenPOWER on IntegriCloud