llvm.org GIT mirror llvm / e54dc2a
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@257290 91177308-0d34-0410-b5e6-96231b3b80d8 NAKAMURA Takumi 3 years ago
1 changed file(s) with 9 addition(s) and 9 deletion(s). Raw diff Collapse all Expand all
2323
2424 class ObjectLinkingLayerExecutionTest : public testing::Test,
2525 public OrcExecutionTest {
26 };
27
28 class SectionMemoryManagerWrapper : public SectionMemoryManager {
29 public:
30 int FinalizationCount = 0;
31 bool finalizeMemory(std::string *ErrMsg = 0) override {
32 ++FinalizationCount;
33 return SectionMemoryManager::finalizeMemory(ErrMsg);
34 }
2635 };
2736
2837 TEST(ObjectLinkingLayerTest, TestSetProcessAllSections) {
101110 if (!TM)
102111 return;
103112
104 class SectionMemoryManagerWrapper : public SectionMemoryManager {
105 public:
106 int FinalizationCount = 0;
107 bool finalizeMemory(std::string *ErrMsg = 0) override {
108 ++FinalizationCount;
109 return SectionMemoryManager::finalizeMemory(ErrMsg);
110 }
111 };
112
113113 ObjectLinkingLayer<> ObjLayer;
114114 SimpleCompiler Compile(*TM);
115115