Skip to content
  • Greg Clayton's avatar
    Cleaned up code that wasn't using the Initialize and Terminate paradigm by · 99d0faf2
    Greg Clayton authored
    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
    99d0faf2
Loading