summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/ASTContext.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2010-07-02 21:50:04 +0000
committerDouglas Gregor <dgregor@apple.com>2010-07-02 21:50:04 +0000
commit330b9cff74d26ce9bc83e5f97fcb6e953bf33008 (patch)
treef6eb821b8a07b9c67dac21cfa667139b6a1b9942 /clang/lib/AST/ASTContext.cpp
parent3b1657b7776c75796a66d05d083e23ad0c9dec36 (diff)
downloadbcm5719-llvm-330b9cff74d26ce9bc83e5f97fcb6e953bf33008.tar.gz
bcm5719-llvm-330b9cff74d26ce9bc83e5f97fcb6e953bf33008.zip
Lazily declare copy-assignment operators.
llvm-svn: 107521
Diffstat (limited to 'clang/lib/AST/ASTContext.cpp')
-rw-r--r--clang/lib/AST/ASTContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/AST/ASTContext.cpp b/clang/lib/AST/ASTContext.cpp
index 40342b36ba6..f44eb657215 100644
--- a/clang/lib/AST/ASTContext.cpp
+++ b/clang/lib/AST/ASTContext.cpp
@@ -31,6 +31,8 @@
using namespace clang;
+unsigned ASTContext::NumImplicitCopyAssignmentOperators;
+unsigned ASTContext::NumImplicitCopyAssignmentOperatorsDeclared;
unsigned ASTContext::NumImplicitDestructors;
unsigned ASTContext::NumImplicitDestructorsDeclared;
@@ -257,6 +259,9 @@ void ASTContext::PrintStats() const {
fprintf(stderr, "Total bytes = %d\n", int(TotalBytes));
// Implicit special member functions.
+ fprintf(stderr, " %u/%u implicit copy assignment operators created\n",
+ NumImplicitCopyAssignmentOperatorsDeclared,
+ NumImplicitCopyAssignmentOperators);
fprintf(stderr, " %u/%u implicit destructors created\n",
NumImplicitDestructorsDeclared, NumImplicitDestructors);
OpenPOWER on IntegriCloud