[llvm-commits] [llvm] r113284 - /llvm/trunk/include/llvm/Support/ManagedStatic.h

Owen Anderson resistor at mac.com
Tue Sep 7 13:53:39 PDT 2010


Author: resistor
Date: Tue Sep  7 15:53:39 2010
New Revision: 113284

URL: http://llvm.org/viewvc/llvm-project?rev=113284&view=rev
Log:
Remove dead code.  ManagedCleanup is unused, and contained a serious bug in that
the provided cleanup function is never actually called.

Modified:
    llvm/trunk/include/llvm/Support/ManagedStatic.h

Modified: llvm/trunk/include/llvm/Support/ManagedStatic.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ManagedStatic.h?rev=113284&r1=113283&r2=113284&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ManagedStatic.h (original)
+++ llvm/trunk/include/llvm/Support/ManagedStatic.h Tue Sep  7 15:53:39 2010
@@ -91,12 +91,6 @@
   }
 };
 
-template<void (*CleanupFn)(void*)>
-class ManagedCleanup : public ManagedStaticBase {
-public:
-  void Register() { RegisterManagedStatic(0, CleanupFn); }
-};
-
 /// llvm_shutdown - Deallocate and destroy all ManagedStatic variables.
 void llvm_shutdown();
 





More information about the llvm-commits mailing list