Make the virtual destructor out-of-line so we have a key function.
authorChandler Carruth <chandlerc@gmail.com>
Tue, 5 Apr 2011 23:54:31 +0000 (23:54 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Tue, 5 Apr 2011 23:54:31 +0000 (23:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128964 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/ExecutionEngine/RuntimeDyld.h
lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

index 5d6d45272dff3cc5541428b9a2da9742d457a4f9..6e18c7cfca52e97afb62a16ceb469c90878b218f 100644 (file)
@@ -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
index 536013a27932ac7f42f1b1ef102d4aba50f20e31..7e6a1f04f0d4648f21766d3a01c90bd318e163ab 100644 (file)
@@ -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;