aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2010-09-07 20:53:39 +0000
committerOwen Anderson <resistor@mac.com>2010-09-07 20:53:39 +0000
commit2da497902a196bacb073b65a5c7030f002cbd349 (patch)
treed179776db6a954d4bf042a71ec4ed42d3ae70399
parent381f17ee7c07b5a80d7dcdeae3d62e497902ef85 (diff)
downloadexternal_llvm-2da497902a196bacb073b65a5c7030f002cbd349.tar.gz
external_llvm-2da497902a196bacb073b65a5c7030f002cbd349.tar.bz2
external_llvm-2da497902a196bacb073b65a5c7030f002cbd349.zip
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
-rw-r--r--include/llvm/Support/ManagedStatic.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/include/llvm/Support/ManagedStatic.h b/include/llvm/Support/ManagedStatic.h
index b8e223587f..a6b3341c16 100644
--- a/include/llvm/Support/ManagedStatic.h
+++ b/include/llvm/Support/ManagedStatic.h
@@ -91,12 +91,6 @@ public:
}
};
-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();