summaryrefslogtreecommitdiffstats
path: root/llvm
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
commit866e516ead42dbc7e5965bb3c7ab2353ec51584d (patch)
tree4cde40457c13158528ab184f6968f31bc31ff368 /llvm
parentd12ea002b83e719dc23d39e1cfb467a95dc51757 (diff)
downloadbcm5719-llvm-866e516ead42dbc7e5965bb3c7ab2353ec51584d.tar.gz
bcm5719-llvm-866e516ead42dbc7e5965bb3c7ab2353ec51584d.zip
Remove dead code. ManagedCleanup is unused, and contained a serious bug in that
the provided cleanup function is never actually called. llvm-svn: 113284
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/Support/ManagedStatic.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/llvm/include/llvm/Support/ManagedStatic.h b/llvm/include/llvm/Support/ManagedStatic.h
index b8e223587fb..a6b3341c165 100644
--- a/llvm/include/llvm/Support/ManagedStatic.h
+++ b/llvm/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();
OpenPOWER on IntegriCloud