1 //===- FGNode.cpp ---------------------------------------------------------===// 2 // 3 // The MCLinker Project 4 // 5 // This file is distributed under the University of Illinois Open Source 6 // License. See LICENSE.TXT for details. 7 // 8 //===----------------------------------------------------------------------===// 9 #include <mcld/Fragment/FGNode.h> 10 11 using namespace mcld; 12 13 //===----------------------------------------------------------------------===// 14 // FGNode 15 //===----------------------------------------------------------------------===// 16 FGNode::FGNode() 17 : m_Index(0x0) 18 { 19 } 20 21 FGNode::FGNode(uint32_t pIndex) 22 : m_Index(pIndex) 23 { 24 } 25 26 void FGNode::addFragment(Fragment* pFrag) 27 { 28 m_Fragments.push_back(pFrag); 29 } 30 31 void FGNode::addSignal(Signal pSignal) 32 { 33 m_Signals.push_back(pSignal); 34 } 35 36 void FGNode::addSlot(Slot pSlot) 37 { 38 m_Slots.push_back(pSlot); 39 } 40 41