• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- RegionFragment.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/RegionFragment.h>
10 
11 using namespace mcld;
12 
13 //===----------------------------------------------------------------------===//
14 // RegionFragment
15 //===----------------------------------------------------------------------===//
RegionFragment(llvm::StringRef pRegion,SectionData * pSD)16 RegionFragment::RegionFragment(llvm::StringRef pRegion, SectionData* pSD)
17   : Fragment(Fragment::Region, pSD), m_Region(pRegion) {
18 }
19 
~RegionFragment()20 RegionFragment::~RegionFragment()
21 {
22 }
23 
size() const24 size_t RegionFragment::size() const
25 {
26   return m_Region.size();
27 }
28 
29