Minor changes to the MCJITTest unittests to use the correct API for finalizing
[oota-llvm.git] / unittests / ExecutionEngine / MCJIT / MCJITMemoryManagerTest.cpp
index ab09acad0d3b65c6366a44c79eb1302071078bb8..9e0b35395e506646409b7258832c1b0f144972a3 100644 (file)
@@ -46,7 +46,7 @@ TEST(MCJITMemoryManagerTest, BasicAllocations) {
   }\r
 \r
   std::string Error;\r
-  EXPECT_FALSE(MemMgr->applyPermissions(&Error));\r
+  EXPECT_FALSE(MemMgr->finalizeMemory(&Error));\r
 }\r
 \r
 TEST(MCJITMemoryManagerTest, LargeAllocations) {\r
@@ -79,7 +79,7 @@ TEST(MCJITMemoryManagerTest, LargeAllocations) {
   }\r
 \r
   std::string Error;\r
-  EXPECT_FALSE(MemMgr->applyPermissions(&Error));\r
+  EXPECT_FALSE(MemMgr->finalizeMemory(&Error));\r
 }\r
 \r
 TEST(MCJITMemoryManagerTest, ManyAllocations) {\r
@@ -114,7 +114,7 @@ TEST(MCJITMemoryManagerTest, ManyAllocations) {
   }\r
 \r
   std::string Error;\r
-  EXPECT_FALSE(MemMgr->applyPermissions(&Error));\r
+  EXPECT_FALSE(MemMgr->finalizeMemory(&Error));\r
 }\r
 \r
 TEST(MCJITMemoryManagerTest, ManyVariedAllocations) {\r