Move SelectionDAG's constructor out of line.
llvm-svn: 55212
This commit is contained in:
parent
77d2a33d8b
commit
ac37f9a9be
|
@ -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; }
|
||||
|
|
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue