]> granicus.if.org Git - clang/commit
Improve crash recovery cleanup to recovery CompilerInstances during crash recovery...
authorTed Kremenek <kremenek@apple.com>
Mon, 21 Mar 2011 18:40:17 +0000 (18:40 +0000)
committerTed Kremenek <kremenek@apple.com>
Mon, 21 Mar 2011 18:40:17 +0000 (18:40 +0000)
commit4f32786ac45210143654390177105eb749b614e9
tree289b0c67da849bf045e5c03605f9fbfc80c23d01
parentcd1eecfe4f43a542c8f9a6e7d12fa69b28c23a67
Improve crash recovery cleanup to recovery CompilerInstances during crash recovery.  This was a huge resource "root" during crashes.

This change requires making a bunch of fundamental Clang structures (optionally) reference counted to allow correct
ownership semantics of these objects (e.g., ASTContext) to play out between an active ASTUnit and CompilerInstance
object.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@128011 91177308-0d34-0410-b5e6-96231b3b80d8
13 files changed:
include/clang/AST/ASTContext.h
include/clang/Basic/FileManager.h
include/clang/Basic/SourceManager.h
include/clang/Basic/TargetInfo.h
include/clang/Frontend/ASTUnit.h
include/clang/Frontend/CompilerInstance.h
include/clang/Frontend/CompilerInvocation.h
include/clang/Lex/Preprocessor.h
lib/Frontend/ASTUnit.cpp
lib/Frontend/CompilerInstance.cpp
lib/Frontend/FrontendAction.cpp
lib/FrontendTool/ExecuteCompilerInvocation.cpp
tools/libclang/CIndexCodeCompletion.cpp