summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-08-23 00:50:30 +0000
committerDan Gohman <gohman@apple.com>2008-08-23 00:50:30 +0000
commitac37f9a9bed46eb009425e012709fc55916317b4 (patch)
treec295f97c841f14582944aa02dc1c6cbe1c3d4947 /llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
parent77d2a33d8b4d3c24fce3cac386a2d1260bfcc893 (diff)
downloadbcm5719-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.cpp7
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());
OpenPOWER on IntegriCloud