RelocData.cpp revision 22add6ff3426df1a85089fe6a6e1597ee3b6f300
1//===- RelocData.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/RelocData.h>
10
11using namespace mcld;
12
13//===----------------------------------------------------------------------===//
14// RelocData
15//===----------------------------------------------------------------------===//
16RelocData::RelocData()
17  : m_pSection(NULL) {
18}
19
20RelocData::RelocData(const LDSection &pSection)
21  : m_pSection(&pSection) {
22}
23
24RelocData* RelocData::Create(const LDSection& pSection)
25{
26  return new RelocData(pSection);
27}
28
29RelocData* RelocData::Create()
30{
31  return new RelocData();
32}
33
34void RelocData::Destroy(RelocData*& pSection)
35{
36  delete pSection;
37  pSection = NULL;
38}
39
40