1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00

Move destructor out of line to avoid vtable emission in every file that includes the header. Thanks to sabre.

llvm-svn: 17278
This commit is contained in:
Nate Begeman 2004-10-27 06:00:53 +00:00
parent 000424b69e
commit 2a64d462d9
2 changed files with 3 additions and 1 deletions

View 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

View 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(),