[llvm-commits] [llvm] r128964 - in /llvm/trunk: include/llvm/ExecutionEngine/RuntimeDyld.h lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

Chandler Carruth chandlerc at gmail.com
Tue Apr 5 16:54:31 PDT 2011


Author: chandlerc
Date: Tue Apr  5 18:54:31 2011
New Revision: 128964

URL: http://llvm.org/viewvc/llvm-project?rev=128964&view=rev
Log:
Make the virtual destructor out-of-line so we have a key function.

Modified:
    llvm/trunk/include/llvm/ExecutionEngine/RuntimeDyld.h
    llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp

Modified: llvm/trunk/include/llvm/ExecutionEngine/RuntimeDyld.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ExecutionEngine/RuntimeDyld.h?rev=128964&r1=128963&r2=128964&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ExecutionEngine/RuntimeDyld.h (original)
+++ llvm/trunk/include/llvm/ExecutionEngine/RuntimeDyld.h Tue Apr  5 18:54:31 2011
@@ -33,7 +33,7 @@
   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

Modified: llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp?rev=128964&r1=128963&r2=128964&view=diff
==============================================================================
--- llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp (original)
+++ llvm/trunk/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp Tue Apr  5 18:54:31 2011
@@ -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;





More information about the llvm-commits mailing list