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 //===----------------------------------------------------------------------===// FGNode()16FGNode::FGNode() 17 : m_Index(0x0) 18 { 19 } 20 FGNode(uint32_t pIndex)21FGNode::FGNode(uint32_t pIndex) 22 : m_Index(pIndex) 23 { 24 } 25 addFragment(Fragment * pFrag)26void FGNode::addFragment(Fragment* pFrag) 27 { 28 m_Fragments.push_back(pFrag); 29 } 30 addSignal(Signal pSignal)31void FGNode::addSignal(Signal pSignal) 32 { 33 m_Signals.push_back(pSignal); 34 } 35 addSlot(Slot pSlot)36void FGNode::addSlot(Slot pSlot) 37 { 38 m_Slots.push_back(pSlot); 39 } 40 41