mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-28 22:43:29 +00:00
add a helper to call llvm_shutdown()
llvm-svn: 32249
This commit is contained in:
parent
3379d67d56
commit
30bf130327
@ -74,6 +74,14 @@ public:
|
||||
/// llvm_shutdown - Deallocate and destroy all ManagedStatic variables.
|
||||
void llvm_shutdown();
|
||||
|
||||
|
||||
/// llvm_shutdown_obj - This is a simple helper class that calls
|
||||
/// llvm_shutdown() when it is destroyed.
|
||||
struct llvm_shutdown_obj {
|
||||
llvm_shutdown_obj() {}
|
||||
~llvm_shutdown_obj() { llvm_shutdown(); }
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user