From: Chandler Carruth Date: Tue, 5 Apr 2011 23:54:31 +0000 (+0000) Subject: Make the virtual destructor out-of-line so we have a key function. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=53c5e7b2e7e36d70bd943cb2d576121435bd5b3f;p=oota-llvm.git 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 --- diff --git a/include/llvm/ExecutionEngine/RuntimeDyld.h b/include/llvm/ExecutionEngine/RuntimeDyld.h index 5d6d45272df..6e18c7cfca5 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 536013a2793..7e6a1f04f0d 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;