From: Owen Anderson Date: Tue, 7 Sep 2010 20:53:39 +0000 (+0000) Subject: Remove dead code. ManagedCleanup is unused, and contained a serious bug in that X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2da497902a196bacb073b65a5c7030f002cbd349;p=oota-llvm.git Remove dead code. ManagedCleanup is unused, and contained a serious bug in that the provided cleanup function is never actually called. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@113284 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/Support/ManagedStatic.h b/include/llvm/Support/ManagedStatic.h index b8e223587fb..a6b3341c165 100644 --- a/include/llvm/Support/ManagedStatic.h +++ b/include/llvm/Support/ManagedStatic.h @@ -91,12 +91,6 @@ public: } }; -template -class ManagedCleanup : public ManagedStaticBase { -public: - void Register() { RegisterManagedStatic(0, CleanupFn); } -}; - /// llvm_shutdown - Deallocate and destroy all ManagedStatic variables. void llvm_shutdown();