diff options
-rw-r--r-- | llvm/include/llvm/ExecutionEngine/RuntimeDyld.h | 2 | ||||
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/llvm/include/llvm/ExecutionEngine/RuntimeDyld.h b/llvm/include/llvm/ExecutionEngine/RuntimeDyld.h index 5d6d45272df..6e18c7cfca5 100644 --- a/llvm/include/llvm/ExecutionEngine/RuntimeDyld.h +++ b/llvm/include/llvm/ExecutionEngine/RuntimeDyld.h @@ -33,7 +33,7 @@ class RTDyldMemoryManager { void operator=(const RTDyldMemoryManager&); // DO NOT IMPLEMENT public: RTDyldMemoryManager() {} - virtual ~RTDyldMemoryManager() {} + virtual ~RTDyldMemoryManager(); // Allocate ActualSize bytes, or more, for the named function. Return // a pointer to the allocated memory and update Size to reflect how much diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 536013a2793..7e6a1f04f0d 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp @@ -29,6 +29,9 @@ using namespace llvm; using namespace llvm::object; +// Empty out-of-line virtual destructor as the key function. +RTDyldMemoryManager::~RTDyldMemoryManager() {} + namespace llvm { class RuntimeDyldImpl { unsigned CPUType; |