diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-07-02 23:41:54 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-07-02 23:41:54 +0000 |
| commit | a6d695057cbebb1b08e0f4a9dd3730e4c3ecf9da (patch) | |
| tree | 2004b481b6a3908a1435ced5c8ae899ad38d444e /clang/lib/AST/ASTContext.cpp | |
| parent | 3701fcd759fc1b7f55c2de06ce715edcea71053f (diff) | |
| download | bcm5719-llvm-a6d695057cbebb1b08e0f4a9dd3730e4c3ecf9da.tar.gz bcm5719-llvm-a6d695057cbebb1b08e0f4a9dd3730e4c3ecf9da.zip | |
Lazily declare implicit copy constructors.
llvm-svn: 107543
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
| -rw-r--r-- | clang/lib/AST/ASTContext.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp index f44eb657215..4737abc3e35 100644 --- a/clang/lib/AST/ASTContext.cpp +++ b/clang/lib/AST/ASTContext.cpp @@ -31,6 +31,8 @@ using namespace clang; +unsigned ASTContext::NumImplicitCopyConstructors; +unsigned ASTContext::NumImplicitCopyConstructorsDeclared; unsigned ASTContext::NumImplicitCopyAssignmentOperators; unsigned ASTContext::NumImplicitCopyAssignmentOperatorsDeclared; unsigned ASTContext::NumImplicitDestructors; @@ -259,6 +261,9 @@ void ASTContext::PrintStats() const { fprintf(stderr, "Total bytes = %d\n", int(TotalBytes)); // Implicit special member functions. + fprintf(stderr, " %u/%u implicit copy constructors created\n", + NumImplicitCopyConstructorsDeclared, + NumImplicitCopyConstructors); fprintf(stderr, " %u/%u implicit copy assignment operators created\n", NumImplicitCopyAssignmentOperatorsDeclared, NumImplicitCopyAssignmentOperators); |

