summaryrefslogtreecommitdiff
path: root/lib/Target/Mips/MipsGNUInfo.h
blob: 2e43d80065e773dde7268a4cc6447e4dfa897152 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
//===- MipsGNUInfo.h ------------------------------------------------------===//
//
//                     The MCLinker Project
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
#ifndef MCLD_TARGET_MIPS_GNU_INFO_H
#define MCLD_TARGET_MIPS_GNU_INFO_H
#include <llvm/Support/ELF.h>
#include <mcld/Target/GNUInfo.h>

namespace mcld {

class MipsGNUInfo : public GNUInfo
{
public:
  MipsGNUInfo(const llvm::Triple& pTriple);

  void setABIVersion(uint8_t ver);
  void setPICFlags(uint64_t flags);

  // GNUInfo
  uint32_t machine() const;
  uint8_t ABIVersion() const;
  uint64_t defaultTextSegmentAddr() const;
  uint64_t flags() const;
  const char* entry() const;
  const char* dyld() const;
  uint64_t abiPageSize() const;

private:
  uint8_t m_ABIVersion;
  uint64_t m_PICFlags;
};

} // namespace of mcld

#endif