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 {
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);