Make FastISel's constructor protected, and give it a destructor.

llvm-svn: 54793
This commit is contained in:
Dan Gohman 2008-08-14 21:51:29 +00:00
parent 8aa62f7dfa
commit 6b146d5ec3
2 changed files with 8 additions and 4 deletions

View File

@ -34,10 +34,6 @@ class FastISel {
const TargetInstrInfo *TII;
public:
FastISel(MachineBasicBlock *mbb, MachineFunction *mf,
const TargetInstrInfo *tii)
: MBB(mbb), MF(mf), TII(tii) {}
/// SelectInstructions - Do "fast" instruction selection over the
/// LLVM IR instructions in the range [Begin, N) where N is either
/// End or the first unsupported instruction. Return N.
@ -48,6 +44,12 @@ public:
DenseMap<const Value*, unsigned> &ValueMap);
protected:
FastISel(MachineBasicBlock *mbb, MachineFunction *mf,
const TargetInstrInfo *tii)
: MBB(mbb), MF(mf), TII(tii) {}
virtual ~FastISel();
virtual unsigned FastEmit_(MVT::SimpleValueType VT,
ISD::NodeType Opcode);
virtual unsigned FastEmit_r(MVT::SimpleValueType VT,

View File

@ -45,6 +45,8 @@ FastISel::SelectInstructions(BasicBlock::iterator Begin, BasicBlock::iterator En
return I;
}
FastISel::~FastISel() {}
unsigned FastISel::FastEmit_(MVT::SimpleValueType, ISD::NodeType) {
return 0;
}