diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-01-10 15:56:49 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2016-01-10 15:56:49 +0000 |
commit | 96e303187cd15f355b71c57f45213b4cec727cad (patch) | |
tree | 6efe632b0f4b7a48ff4a9ad920b93babcbf6ea78 | |
parent | acad32d8e1e3b52a61c583f248e57a5cf59be4af (diff) | |
download | bcm5719-llvm-96e303187cd15f355b71c57f45213b4cec727cad.tar.gz bcm5719-llvm-96e303187cd15f355b71c57f45213b4cec727cad.zip |
OrcJITTests//ObjectLinkingLayerTest.cpp: Appease msc18's C2327. It seems definition of nested class would confuse the context.
llvm\unittests\ExecutionEngine\Orc\ObjectLinkingLayerTest.cpp(115) : error C2327: 'llvm::OrcExecutionTest::TM' : is not a type name, static, or enumerator
llvm\unittests\ExecutionEngine\Orc\ObjectLinkingLayerTest.cpp(115) : error C2065: 'TM' : undeclared identifier
FYI, "this->TM" was valid even before moving class SectionMemoryManagerWrapper.
llvm-svn: 257290
-rw-r--r-- | llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp b/llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp index d7c0b74670c..59ee01f3601 100644 --- a/llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp +++ b/llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp @@ -26,6 +26,15 @@ class ObjectLinkingLayerExecutionTest : public testing::Test, public OrcExecutionTest { }; +class SectionMemoryManagerWrapper : public SectionMemoryManager { +public: + int FinalizationCount = 0; + bool finalizeMemory(std::string *ErrMsg = 0) override { + ++FinalizationCount; + return SectionMemoryManager::finalizeMemory(ErrMsg); + } +}; + TEST(ObjectLinkingLayerTest, TestSetProcessAllSections) { class SectionMemoryManagerWrapper : public SectionMemoryManager { @@ -102,15 +111,6 @@ TEST_F(ObjectLinkingLayerExecutionTest, NoDuplicateFinalization) { if (!TM) return; - class SectionMemoryManagerWrapper : public SectionMemoryManager { - public: - int FinalizationCount = 0; - bool finalizeMemory(std::string *ErrMsg = 0) override { - ++FinalizationCount; - return SectionMemoryManager::finalizeMemory(ErrMsg); - } - }; - ObjectLinkingLayer<> ObjLayer; SimpleCompiler Compile(*TM); |