aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMELFWriterInfo.cpp
blob: 85b690fd7aa87de5e2c399eb33e751dac9dd6c27 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
//===-- ARMELFWriterInfo.cpp - ELF Writer Info for the ARM backend --------===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements ELF writer information for the ARM backend.
//
//===----------------------------------------------------------------------===//

#include "ARMELFWriterInfo.h"
#include "ARMRelocations.h"
#include "llvm/Function.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetMachine.h"

using namespace llvm;

//===----------------------------------------------------------------------===//
//  Implementation of the ARMELFWriterInfo class
//===----------------------------------------------------------------------===//

ARMELFWriterInfo::ARMELFWriterInfo(TargetMachine &TM)
  : TargetELFWriterInfo(TM.getTargetData()->getPointerSizeInBits() == 64,
                        TM.getTargetData()->isLittleEndian()) {
  // silently OK construction
}

ARMELFWriterInfo::~ARMELFWriterInfo() {}

unsigned ARMELFWriterInfo::getRelocationType(unsigned MachineRelTy) const {
  assert(0 && "ARMELFWriterInfo::getRelocationType() not implemented");
  return 0;
}

long int ARMELFWriterInfo::getDefaultAddendForRelTy(unsigned RelTy,
                                                    long int Modifier) const {
  assert(0 && "ARMELFWriterInfo::getDefaultAddendForRelTy() not implemented");
  return 0;
}

unsigned ARMELFWriterInfo::getRelocationTySize(unsigned RelTy) const {
  assert(0 && "ARMELFWriterInfo::getRelocationTySize() not implemented");
  return 0;
}

bool ARMELFWriterInfo::isPCRelativeRel(unsigned RelTy) const {
  assert(0 && "ARMELFWriterInfo::isPCRelativeRel() not implemented");
  return 1;
}

unsigned ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() const {
  assert(0 &&
         "ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() not implemented");
  return 0;
}

long int ARMELFWriterInfo::computeRelocation(unsigned SymOffset,
                                             unsigned RelOffset,
                                             unsigned RelTy) const {
  assert(0 &&
         "ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() not implemented");
  return 0;
}