Move SelectionDAG's constructor out of line.
authorDan Gohman <gohman@apple.com>
Sat, 23 Aug 2008 00:50:30 +0000 (00:50 +0000)
committerDan Gohman <gohman@apple.com>
Sat, 23 Aug 2008 00:50:30 +0000 (00:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55212 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/SelectionDAG.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp

index c90cdb25e221274ea30ac2e8f68aed3d30ae9ce9..a19765a644c18163ff00295cb5ad8148eef3d8e1 100644 (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; }
index 2167656171c8f1bc81ec8560489629049309669a..3e3890142f566513b41730592958c3a535d383ff 100644 (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());