blob: 1183e7efe122879ea37a0db966ee5230f208d440 [file] [log] [blame]
Rafael Espindolafd9493d2010-09-27 18:31:37 +00001//===-- ARMELFWriterInfo.cpp - ELF Writer Info for the ARM backend --------===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
9//
10// This file implements ELF writer information for the ARM backend.
11//
12//===----------------------------------------------------------------------===//
13
14#include "ARMELFWriterInfo.h"
15#include "ARMRelocations.h"
16#include "llvm/Function.h"
17#include "llvm/Support/ErrorHandling.h"
18#include "llvm/Target/TargetData.h"
19#include "llvm/Target/TargetMachine.h"
20
21using namespace llvm;
22
23//===----------------------------------------------------------------------===//
24// Implementation of the ARMELFWriterInfo class
25//===----------------------------------------------------------------------===//
26
27ARMELFWriterInfo::ARMELFWriterInfo(TargetMachine &TM)
28 : TargetELFWriterInfo(TM) {
29 // silently OK construction
30}
31
32ARMELFWriterInfo::~ARMELFWriterInfo() {}
33
34unsigned ARMELFWriterInfo::getRelocationType(unsigned MachineRelTy) const {
35 assert(0 && "ARMELFWriterInfo::getRelocationType() not implemented");
36 return 0;
37}
38
39long int ARMELFWriterInfo::getDefaultAddendForRelTy(unsigned RelTy,
40 long int Modifier) const {
41 assert(0 && "ARMELFWriterInfo::getDefaultAddendForRelTy() not implemented");
42 return 0;
43}
44
45unsigned ARMELFWriterInfo::getRelocationTySize(unsigned RelTy) const {
46 assert(0 && "ARMELFWriterInfo::getRelocationTySize() not implemented");
47 return 0;
48}
49
50bool ARMELFWriterInfo::isPCRelativeRel(unsigned RelTy) const {
51 assert(0 && "ARMELFWriterInfo::isPCRelativeRel() not implemented");
52 return 1;
53}
54
55unsigned ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() const {
Eric Christophera99c3e92010-09-28 04:18:29 +000056 assert(0 &&
57 "ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() not implemented");
Rafael Espindolafd9493d2010-09-27 18:31:37 +000058 return 0;
59}
60
61long int ARMELFWriterInfo::computeRelocation(unsigned SymOffset,
62 unsigned RelOffset,
63 unsigned RelTy) const {
Eric Christophera99c3e92010-09-28 04:18:29 +000064 assert(0 &&
65 "ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() not implemented");
Rafael Espindolafd9493d2010-09-27 18:31:37 +000066 return 0;
67}