mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 20:51:52 +01:00
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
This commit is contained in:
parent
cd2490f7bc
commit
e3f56c7faa
@ -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);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user