aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2010-11-18 23:32:35 +0000
committerGreg Clayton <gclayton@apple.com>2010-11-18 23:32:35 +0000
commit99d0faf27e1c43022d919c29456643e57dd8574a (patch)
tree97c912b77daca459224f92f05b3866aafa2a6be9 /clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp
parent690fa953e1c7b49aad56d90cea2fb82b8068d34c (diff)
downloadllvm-99d0faf27e1c43022d919c29456643e57dd8574a.zip
llvm-99d0faf27e1c43022d919c29456643e57dd8574a.tar.gz
llvm-99d0faf27e1c43022d919c29456643e57dd8574a.tar.bz2
Cleaned up code that wasn't using the Initialize and Terminate paradigm by
changing it to use it. There was an extra parameter added to the static accessor global user settings controllers that wasn't needed. A bool was being used as a parameter to the accessor just so it could be used to clean up the global user settings controller which is now fixed by splitting up the initialization into the "static void Class::Initialize()", access into the "static UserSettingsControllerSP & Class::GetSettingsController()", and cleanup into "static void Class::Terminate()". Also added initialize and terminate calls to the logging code to avoid issues when LLDB is shutting down. There were cases after the logging was switched over to use shared pointers where we could crash if the global destructor chain was being run and it causes the log to be destroyed and any any logging occurred. llvm-svn: 119757
Diffstat (limited to 'clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions