Home | History | Annotate | Download | only in LD

Lines Matching defs:Layout

1 //===- Layout.cpp ---------------------------------------------------------===//
13 #include <mcld/LD/Layout.h>
26 Layout::Range::Range()
31 Layout::Range::Range(const LDSection& pHdr)
36 Layout::Range::~Range()
41 // Layout
42 Layout::Layout()
46 Layout::~Layout()
50 void Layout::setFragmentLayoutOrder(llvm::MCFragment* pFrag)
63 // set all layout order
76 // set up all layout order
84 /// setFragmentLayoutOffset - set the fragment's layout offset. This function
85 /// also set up the layout offsets of all the fragments in the same range.
87 void Layout::setFragmentLayoutOffset(llvm::MCFragment* pFrag)
100 // set all layout order
122 /// 2. compute the layout order of all previous ranges.
123 void Layout::addInputRange(const llvm::MCSectionData& pSD,
162 // compute the layout order of the previous range.
172 uint64_t Layout::appendFragment(llvm::MCFragment& pFrag,
209 Layout::getInputLDSection(const llvm::MCFragment& pFrag)
222 llvm::Twine("registered in the Layout.\nPlease ") +
228 // the fragment who has the layout order is not in the last range.
242 // the fragment who has no layout order should be in the last range
253 Layout::getInputLDSection(const llvm::MCFragment& pFrag) const
266 llvm::Twine("registered in the Layout.\nPlease ") +
273 // the fragment who has the layout order is not in the last range.
287 // the fragment who has no layout order should be in the last range
296 LDSection* Layout::getOutputLDSection(const llvm::MCFragment& pFrag)
306 const LDSection* Layout::getOutputLDSection(const llvm::MCFragment& pFrag) const
317 Layout::getFragmentRef(Layout::Range& pRange, uint64_t pOffset)
337 Layout::getFragmentRef(llvm::MCFragment& pFront,
345 // compute layout order, offset
403 Layout::getFragmentRef(const LDSection& pInputSection, uint64_t pOffset)
444 Layout::getFragmentRef(const llvm::MCFragment& pFrag, uint64_t pBigOffset)
447 // compute layout order, offset
487 uint64_t Layout::getOutputOffset(const llvm::MCFragment& pFrag)
490 // compute layout order, offset
497 uint64_t Layout::getOutputOffset(const llvm::MCFragment& pFrag) const
503 llvm::Twine(" can not be used before layout().\n"));
508 uint64_t Layout::getOutputOffset(const MCFragmentRef& pFragRef)
513 uint64_t Layout::getOutputOffset(const MCFragmentRef& pFragRef) const
518 void Layout
548 bool Layout::layout(Output& pOutput, const TargetLDBackend& pBackend)
632 // perform sorting on m_SectionOrder to get a ordering for final layout
660 bool Layout::isValidOffset(const llvm::MCFragment& pFrag, uint64_t pTargetOffset) const