Move destructor out of line to avoid vtable emission in every file that includes...
authorNate Begeman <natebegeman@mac.com>
Wed, 27 Oct 2004 06:00:53 +0000 (06:00 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 27 Oct 2004 06:00:53 +0000 (06:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17278 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/MRegisterInfo.h
lib/Target/MRegisterInfo.cpp

index 340c8118e11f46f7278e6674b4a2912dc23be492..c3cc76888a5cd955f07c729df5b45bf26792680c 100644 (file)
@@ -124,7 +124,7 @@ protected:
   MRegisterInfo(const MRegisterDesc *D, unsigned NR,
                 regclass_iterator RegClassBegin, regclass_iterator RegClassEnd,
                int CallFrameSetupOpcode = -1, int CallFrameDestroyOpcode = -1);
-  virtual ~MRegisterInfo() {}
+  virtual ~MRegisterInfo();
 public:
 
   enum {                        // Define some target independent constants
index 5b8c8e1871e9ba585c2d043984cf8caa014ffde6..bd7d9245e847648c8f14bb0fb191e98f636df32d 100644 (file)
@@ -26,6 +26,8 @@ MRegisterInfo::MRegisterInfo(const MRegisterDesc *D, unsigned NR,
   CallFrameDestroyOpcode = CFDO;
 }
 
+MRegisterInfo::~MRegisterInfo() {}
+
 std::vector<bool> MRegisterInfo::getAllocatableSet(MachineFunction &MF) const {
   std::vector<bool> Allocatable(NumRegs);
   for (MRegisterInfo::regclass_iterator I = regclass_begin(),