[llvm] r218304 - ExecutionEngineTests: Call llvm_shutdown() on exit for ManagedStatic introduced in r218151.
NAKAMURA Takumi
geek4civic at gmail.com
Tue Sep 23 06:49:51 PDT 2014
Author: chapuni
Date: Tue Sep 23 08:49:51 2014
New Revision: 218304
URL: http://llvm.org/viewvc/llvm-project?rev=218304&view=rev
Log:
ExecutionEngineTests: Call llvm_shutdown() on exit for ManagedStatic introduced in r218151.
Modified:
llvm/trunk/unittests/ExecutionEngine/ExecutionEngineTest.cpp
Modified: llvm/trunk/unittests/ExecutionEngine/ExecutionEngineTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ExecutionEngine/ExecutionEngineTest.cpp?rev=218304&r1=218303&r2=218304&view=diff
==============================================================================
--- llvm/trunk/unittests/ExecutionEngine/ExecutionEngineTest.cpp (original)
+++ llvm/trunk/unittests/ExecutionEngine/ExecutionEngineTest.cpp Tue Sep 23 08:49:51 2014
@@ -12,10 +12,13 @@
#include "llvm/IR/GlobalVariable.h"
#include "llvm/IR/LLVMContext.h"
#include "llvm/IR/Module.h"
+#include "llvm/Support/ManagedStatic.h"
#include "gtest/gtest.h"
using namespace llvm;
+static llvm_shutdown_obj Y; // Call llvm_shutdown() on exit.
+
namespace {
class ExecutionEngineTest : public testing::Test {
More information about the llvm-commits
mailing list