1 //===-- ARMELFWriterInfo.cpp - ELF Writer Info for the ARM backend --------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file implements ELF writer information for the ARM backend.
12 //===----------------------------------------------------------------------===//
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"
23 //===----------------------------------------------------------------------===//
24 // Implementation of the ARMELFWriterInfo class
25 //===----------------------------------------------------------------------===//
27 ARMELFWriterInfo::ARMELFWriterInfo(TargetMachine &TM)
28 : TargetELFWriterInfo(TM) {
29 // silently OK construction
32 ARMELFWriterInfo::~ARMELFWriterInfo() {}
34 unsigned ARMELFWriterInfo::getRelocationType(unsigned MachineRelTy) const {
35 assert(0 && "ARMELFWriterInfo::getRelocationType() not implemented");
39 long int ARMELFWriterInfo::getDefaultAddendForRelTy(unsigned RelTy,
40 long int Modifier) const {
41 assert(0 && "ARMELFWriterInfo::getDefaultAddendForRelTy() not implemented");
45 unsigned ARMELFWriterInfo::getRelocationTySize(unsigned RelTy) const {
46 assert(0 && "ARMELFWriterInfo::getRelocationTySize() not implemented");
50 bool ARMELFWriterInfo::isPCRelativeRel(unsigned RelTy) const {
51 assert(0 && "ARMELFWriterInfo::isPCRelativeRel() not implemented");
55 unsigned ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() const {
57 "ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() not implemented");
61 long int ARMELFWriterInfo::computeRelocation(unsigned SymOffset,
63 unsigned RelTy) const {
65 "ARMELFWriterInfo::getAbsoluteLabelMachineRelTy() not implemented");