Move SelectionDAG's constructor out of line.

llvm-svn: 55212
This commit is contained in:
Dan Gohman 2008-08-23 00:50:30 +00:00
parent 77d2a33d8b
commit ac37f9a9be
2 changed files with 8 additions and 4 deletions

View File

@ -102,10 +102,7 @@ class SelectionDAG {
public:
SelectionDAG(TargetLowering &tli, MachineFunction &mf,
FunctionLoweringInfo &fli, MachineModuleInfo *mmi,
NodeAllocatorType &nodeallocator)
: TLI(tli), MF(mf), FLI(fli), MMI(mmi), NodeAllocator(nodeallocator) {
EntryNode = Root = getNode(ISD::EntryToken, MVT::Other);
}
NodeAllocatorType &nodeallocator);
~SelectionDAG();
MachineFunction &getMachineFunction() const { return MF; }

View File

@ -763,6 +763,13 @@ unsigned SelectionDAG::getMVTAlignment(MVT VT) const {
return TLI.getTargetData()->getABITypeAlignment(Ty);
}
SelectionDAG::SelectionDAG(TargetLowering &tli, MachineFunction &mf,
FunctionLoweringInfo &fli, MachineModuleInfo *mmi,
NodeAllocatorType &nodeallocator)
: TLI(tli), MF(mf), FLI(fli), MMI(mmi), NodeAllocator(nodeallocator) {
EntryNode = Root = getNode(ISD::EntryToken, MVT::Other);
}
SelectionDAG::~SelectionDAG() {
while (!AllNodes.empty()) {
SDNode *N = AllNodes.remove(AllNodes.begin());