projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
381f17e
)
Remove dead code. ManagedCleanup is unused, and contained a serious bug in that
author
Owen Anderson
<resistor@mac.com>
Tue, 7 Sep 2010 20:53:39 +0000
(20:53 +0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 7 Sep 2010 20:53:39 +0000
(20:53 +0000)
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
include/llvm/Support/ManagedStatic.h
patch
|
blob
|
history
diff --git
a/include/llvm/Support/ManagedStatic.h
b/include/llvm/Support/ManagedStatic.h
index b8e223587fbd34d305704e2d701d7c8840689bf1..a6b3341c16556f09ac660db060431cf5cb85c2db 100644
(file)
--- 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();