diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-14 21:51:29 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-14 21:51:29 +0000 |
commit | eeb6e3049f0a62d2d61b87cc02ec5f7372731ab3 (patch) | |
tree | e32198df2a137da555e70e8c9ff06509418595da | |
parent | fa3d0ff9818d1087e19f7cb92269f9a6d68cc72d (diff) | |
download | external_llvm-eeb6e3049f0a62d2d61b87cc02ec5f7372731ab3.tar.gz external_llvm-eeb6e3049f0a62d2d61b87cc02ec5f7372731ab3.tar.bz2 external_llvm-eeb6e3049f0a62d2d61b87cc02ec5f7372731ab3.zip |
Make FastISel's constructor protected, and give it a destructor.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54793 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/FastISel.h | 10 | ||||
-rw-r--r-- | lib/CodeGen/SelectionDAG/FastISel.cpp | 2 |
2 files changed, 8 insertions, 4 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index ee0e120327..bd00e4fa2a 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -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, diff --git a/lib/CodeGen/SelectionDAG/FastISel.cpp b/lib/CodeGen/SelectionDAG/FastISel.cpp index 6fe941fecb..f4d453966b 100644 --- a/lib/CodeGen/SelectionDAG/FastISel.cpp +++ b/lib/CodeGen/SelectionDAG/FastISel.cpp @@ -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; } |