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 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 
size() const23 size_t RegionFragment::size() const {
24   return m_Region.size();
25 }
26 
27 }  // namespace mcld
28