class ManagedStatic

Declaration

template <class C,
          class Creator = object_creator<C>,
          class Deleter = object_deleter<C>>
class ManagedStatic : public ManagedStaticBase { /* full declaration omitted */ };

Description

ManagedStatic - This transparently changes the behavior of global statics to be lazily constructed on demand (good for reducing startup times of dynamic libraries that link in LLVM components) and for making destruction be explicit through the llvm_shutdown() function call.

Declared at: llvm/include/llvm/Support/ManagedStatic.h:83

Inherits from: ManagedStaticBase

Templates

C
Creator = object_creator<C>
Deleter = object_deleter<C>

Member Variables

Inherited from ManagedStaticBase:

protected Ptr = {}
protected DeleterFn = nullptr
protected Next = nullptr

Method Overview

Inherited from ManagedStaticBase:

Methods

ΒΆC* claim()

Declared at: llvm/include/llvm/Support/ManagedStatic.h:108