}
void ManagedStaticBase::destroy() const {
- assert(Ptr && DeleterFn && "ManagedStatic not initialized correctly!");
+ assert(DeleterFn && "ManagedStatic not initialized correctly!");
assert(StaticList == this &&
"Not destroyed in reverse order of construction?");
// Unlink from list.
}
/// llvm_shutdown - Deallocate and destroy all ManagedStatic variables.
-void llvm_shutdown() {
+void llvm::llvm_shutdown() {
while (StaticList)
StaticList->destroy();
}