summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-05-20 00:43:19 +0000
committerTed Kremenek <kremenek@apple.com>2008-05-20 00:43:19 +0000
commitce20e8fe8d4855fda2175f1ddd12b8b1545a4730 (patch)
treebf39425ce44381b38a51c257f50184556506c7e0 /clang/lib/CodeGen/CodeGenModule.cpp
parent247ee87e26a505c8cf2a1a38005f4c671a8db217 (diff)
downloadbcm5719-llvm-ce20e8fe8d4855fda2175f1ddd12b8b1545a4730.tar.gz
bcm5719-llvm-ce20e8fe8d4855fda2175f1ddd12b8b1545a4730.zip
Try to plug some memory leaks...
1) Sema::ParseAST now constructs a TranslationUnit object to own the top-level Decls, which releases the top-level Decls upon exiting ParseAST. 2) Bug fix: TranslationUnit::~TranslationUnit handles the case where a Decl is added more than once as a top-level Decl. 3) Decl::Destroy is now a virtual method, obviating the need for a special dispatch based on DeclKind. 3) FunctionDecl::Destroy now releases its Body using its Destroy method. 4) Added Stmt::Destroy and Stmt::DestroyChildren, which recursively delete the child ASTs of a Stmt and call their dstors. We may need to special case dstor/Destroy methods for particular Stmt subclasses that own other dynamically allocated objects besides AST nodes. 5) REGRESSION: We temporarily are not deallocating attributes; a FIXME is provided. llvm-svn: 51286
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud