diff options
author | Dan Gohman <gohman@apple.com> | 2008-08-23 00:50:30 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2008-08-23 00:50:30 +0000 |
commit | ac37f9a9bed46eb009425e012709fc55916317b4 (patch) | |
tree | c295f97c841f14582944aa02dc1c6cbe1c3d4947 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | |
parent | 77d2a33d8b4d3c24fce3cac386a2d1260bfcc893 (diff) | |
download | bcm5719-llvm-ac37f9a9bed46eb009425e012709fc55916317b4.tar.gz bcm5719-llvm-ac37f9a9bed46eb009425e012709fc55916317b4.zip |
Move SelectionDAG's constructor out of line.
llvm-svn: 55212
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp index 2167656171c..3e3890142f5 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp @@ -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()); |