[llvm] r265565 - [RegisterBankInfo] Make the destructor public... that may be useful!

Quentin Colombet via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 6 10:09:34 PDT 2016


Author: qcolombet
Date: Wed Apr  6 12:09:34 2016
New Revision: 265565

URL: http://llvm.org/viewvc/llvm-project?rev=265565&view=rev
Log:
[RegisterBankInfo] Make the destructor public... that may be useful!

Modified:
    llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h

Modified: llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h?rev=265565&r1=265564&r2=265565&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h Wed Apr  6 12:09:34 2016
@@ -17,6 +17,7 @@
 
 #include "llvm/ADT/APInt.h"
 #include "llvm/CodeGen/GlobalISel/RegisterBank.h"
+#include "llvm/CodeGen/GlobalISel/Types.h"
 #include "llvm/Support/ErrorHandling.h"
 
 #include <cassert>
@@ -146,8 +147,6 @@ protected:
     llvm_unreachable("This constructor should not be executed");
   }
 
-  virtual ~RegisterBankInfo() {}
-
   /// Create a new register bank with the given parameter and add it
   /// to RegBanks.
   /// \pre \p ID must not already be used.
@@ -180,6 +179,8 @@ protected:
   }
 
 public:
+  virtual ~RegisterBankInfo() {}
+
   /// Get the register bank identified by \p ID.
   const RegisterBank &getRegBank(unsigned ID) const {
     return const_cast<RegisterBankInfo *>(this)->getRegBank(ID);




More information about the llvm-commits mailing list