mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
[RegisterBankInfo] Make the destructor public... that may be useful!
llvm-svn: 265565
This commit is contained in:
parent
e0c7df09a7
commit
3e2b75b521
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user