• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- AlignFragment.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/LD/AlignFragment.h>
10 
11 #include <mcld/LD/SectionData.h>
12 
13 using namespace mcld;
14 
15 //===----------------------------------------------------------------------===//
16 // AlignFragment
17 //===----------------------------------------------------------------------===//
AlignFragment(unsigned int pAlignment,int64_t pValue,unsigned int pValueSize,unsigned int pMaxBytesToEmit,SectionData * pSD)18 AlignFragment::AlignFragment(unsigned int pAlignment,
19                              int64_t pValue,
20                              unsigned int pValueSize,
21                              unsigned int pMaxBytesToEmit,
22                              SectionData *pSD)
23   : Fragment(Fragment::Alignment, pSD), m_Alignment(pAlignment),
24     m_Value(pValue), m_ValueSize(pValueSize), m_MaxBytesToEmit(pMaxBytesToEmit),
25     m_bEmitNops(false) {
26 }
27 
28