git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153208 91177308-0d34-0410...
authorDanil Malyshev <dmalyshev@accesssoftek.com>
Wed, 21 Mar 2012 19:13:08 +0000 (19:13 +0000)
committerDanil Malyshev <dmalyshev@accesssoftek.com>
Wed, 21 Mar 2012 19:13:08 +0000 (19:13 +0000)
lib/ExecutionEngine/MCJIT/MCJITMemoryManager.h
tools/llvm-rtdyld/llvm-rtdyld.cpp

index ac8c15579ef54b8efb5d53743f32531b3dd9bb45..9ff6811c4b7681d3f70d76fc81d4571280e0c82d 100644 (file)
@@ -41,6 +41,11 @@ public:
     return JMM->allocateCodeSection(Size, Alignment, SectionID);
   }
 
+  virtual void *getPointerToNamedFunction(const std::string &Name,
+                                          bool AbortOnFailure = true) {
+    return JMM->getPointerToNamedFunction(Name, AbortOnFailure);
+  }
+
   // Allocate ActualSize bytes, or more, for the named function. Return
   // a pointer to the allocated memory and update Size to reflect how much
   // memory was acutally allocated.
index 990582d7f45957e29c732d22efa44e385c1ed9cb..a21fc132fe45f8f1ab52d7550f4748da70b61b40 100644 (file)
@@ -61,6 +61,12 @@ public:
   uint8_t *startFunctionBody(const char *Name, uintptr_t &Size);
   void endFunctionBody(const char *Name, uint8_t *FunctionStart,
                        uint8_t *FunctionEnd);
+
+  virtual void *getPointerToNamedFunction(const std::string &Name,
+                                          bool AbortOnFailure = true) {
+    return 0;
+  }
+
 };
 
 uint8_t *TrivialMemoryManager::allocateCodeSection(uintptr_t Size,