From: Quentin Colombet Date: Wed, 6 Apr 2016 17:09:34 +0000 (+0000) Subject: [RegisterBankInfo] Make the destructor public... that may be useful! X-Git-Tag: llvmorg-3.9.0-rc1~9845 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4c85bdb70199094a63a3c27c9fb5afa8b3592df4;p=platform%2Fupstream%2Fllvm.git [RegisterBankInfo] Make the destructor public... that may be useful! llvm-svn: 265565 --- diff --git a/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h b/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h index 766739a..5634c21 100644 --- a/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h +++ b/llvm/include/llvm/CodeGen/GlobalISel/RegisterBankInfo.h @@ -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 @@ -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(this)->getRegBank(ID);