summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp
blob: 84ae9a3341372568b8023e156d5d33e29a0f9562 (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
69
70
71
//===-- AMDILELFWriterInfo.cpp - Elf Writer Info for AMDIL ----------------===//
//
//                     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 AMDIL backend.
//
//===----------------------------------------------------------------------===//

#include "AMDILELFWriterInfo.h"
#include "AMDIL.h"
#include "llvm/Function.h"
#include "llvm/Support/ErrorHandling.h"
#include "llvm/Target/TargetData.h"
#include "llvm/Target/TargetELFWriterInfo.h"
#include "llvm/Target/TargetMachine.h"

using namespace llvm;

//===----------------------------------------------------------------------===//
//  Implementation of the AMDILELFWriterInfo class
//===----------------------------------------------------------------------===//
AMDILELFWriterInfo::AMDILELFWriterInfo(bool is64bit, bool endian)
  : TargetELFWriterInfo(is64bit, endian)
{
}

AMDILELFWriterInfo::~AMDILELFWriterInfo() {
}

unsigned AMDILELFWriterInfo::getRelocationType(unsigned MachineRelTy) const {
  assert(0 && "What do we do here? Lets assert an analyze");
  return 0;
}

bool AMDILELFWriterInfo::hasRelocationAddend() const {
  assert(0 && "What do we do here? Lets assert an analyze");
  return false;
}

long int AMDILELFWriterInfo::getDefaultAddendForRelTy(unsigned RelTy,
                                                      long int Modifier) const {
  assert(0 && "What do we do here? Lets assert an analyze");
  return 0;
}

unsigned AMDILELFWriterInfo::getRelocationTySize(unsigned RelTy) const {
  assert(0 && "What do we do here? Lets assert an analyze");
  return 0;
}

bool AMDILELFWriterInfo::isPCRelativeRel(unsigned RelTy) const {
  assert(0 && "What do we do here? Lets assert an analyze");
  return false;
}

unsigned AMDILELFWriterInfo::getAbsoluteLabelMachineRelTy() const {
  assert(0 && "What do we do here? Lets assert an analyze");
  return 0;
}

long int AMDILELFWriterInfo::computeRelocation(unsigned SymOffset,
                                               unsigned RelOffset,
                                               unsigned RelTy) const {
  assert(0 && "What do we do here? Lets assert an analyze");
  return 0;
}