• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 //===- ELFDynamic.h -------------------------------------------------------===//
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 
Entry()10 Entry<32, true>::Entry()
11 {
12   m_Pair.d_tag = 0;
13   m_Pair.d_un.d_val = 0;
14 }
15 
~Entry()16 Entry<32, true>::~Entry()
17 {
18 }
19 
setValue(uint64_t pTag,uint64_t pValue)20 void Entry<32, true>::setValue(uint64_t pTag, uint64_t pValue)
21 {
22   m_Pair.d_tag = pTag;
23   m_Pair.d_un.d_val = pValue;
24 }
25 
emit(uint8_t * pAddress) const26 size_t Entry<32, true>::emit(uint8_t* pAddress) const
27 {
28   memcpy(reinterpret_cast<void*>(pAddress),
29          reinterpret_cast<const void*>(&m_Pair),
30          sizeof(Pair));
31   return sizeof(Pair);
32 }
33 
34