OrcJITTests//ObjectLinkingLayerTest.cpp: Appease msc18's C2327. It seems definition...
[oota-llvm.git] / unittests / ExecutionEngine / Orc / ObjectLinkingLayerTest.cpp
index d7c0b74..59ee01f 100644 (file)
@@ -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);