aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-04-05 23:54:31 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-04-05 23:54:31 +0000
commit53c5e7b2e7e36d70bd943cb2d576121435bd5b3f (patch)
treee56bcb862cb002b88cdbda6a01660693627da5ae
parent71d9e65ee71712b965c79739e63de94fbb8078ad (diff)
downloadexternal_llvm-53c5e7b2e7e36d70bd943cb2d576121435bd5b3f.zip
external_llvm-53c5e7b2e7e36d70bd943cb2d576121435bd5b3f.tar.gz
external_llvm-53c5e7b2e7e36d70bd943cb2d576121435bd5b3f.tar.bz2
Make the virtual destructor out-of-line so we have a key function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128964 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ExecutionEngine/RuntimeDyld.h2
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/ExecutionEngine/RuntimeDyld.h b/include/llvm/ExecutionEngine/RuntimeDyld.h
index 5d6d452..6e18c7c 100644
--- a/include/llvm/ExecutionEngine/RuntimeDyld.h
+++ b/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/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index 536013a..7e6a1f0 100644
--- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
+++ b/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;