From 9f4509343369e8adb43268329c845148ea32a114 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Tue, 24 Apr 2012 22:04:43 -0400 Subject: [PATCH] radeon/llvm: Remove AMDILELFWriterInfo.cpp --- .../drivers/radeon/AMDILELFWriterInfo.cpp | 71 ------------------- .../drivers/radeon/AMDILELFWriterInfo.h | 54 -------------- .../drivers/radeon/AMDILTargetMachine.cpp | 9 +-- .../drivers/radeon/AMDILTargetMachine.h | 3 - src/gallium/drivers/radeon/Makefile.sources | 1 - 5 files changed, 1 insertion(+), 137 deletions(-) delete mode 100644 src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp delete mode 100644 src/gallium/drivers/radeon/AMDILELFWriterInfo.h diff --git a/src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp b/src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp deleted file mode 100644 index 84ae9a33413..00000000000 --- a/src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp +++ /dev/null @@ -1,71 +0,0 @@ -//===-- 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; -} diff --git a/src/gallium/drivers/radeon/AMDILELFWriterInfo.h b/src/gallium/drivers/radeon/AMDILELFWriterInfo.h deleted file mode 100644 index 0bcffd27f59..00000000000 --- a/src/gallium/drivers/radeon/AMDILELFWriterInfo.h +++ /dev/null @@ -1,54 +0,0 @@ -//===-- AMDILELFWriterInfo.h - 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. -// -//===---------------------------------------------------------------------===// -#ifndef _AMDIL_ELF_WRITER_INFO_H_ -#define _AMDIL_ELF_WRITER_INFO_H_ -#include "llvm/Target/TargetELFWriterInfo.h" - -namespace llvm { - class AMDILELFWriterInfo : public TargetELFWriterInfo { - public: - AMDILELFWriterInfo(bool is64Bit_, bool isLittleEndian_); - virtual ~AMDILELFWriterInfo(); - - /// getRelocationType - Returns the target specific ELF Relocation type. - /// 'MachineRelTy' contains the object code independent relocation type - virtual unsigned getRelocationType(unsigned MachineRelTy) const; - - /// 'hasRelocationAddend - True if the target uses and addend in the - /// ELF relocation entry. - virtual bool hasRelocationAddend() const; - - /// getDefaultAddendForRelTy - Gets the default addend value for a - /// relocation entry based on the target ELF relocation type. - virtual long int getDefaultAddendForRelTy(unsigned RelTy, - long int Modifier = 0) const; - - /// getRelTySize - Returns the size of relocatble field in bits - virtual unsigned getRelocationTySize(unsigned RelTy) const; - - /// isPCRelativeRel - True if the relocation type is pc relative - virtual bool isPCRelativeRel(unsigned RelTy) const; - - /// getJumpTableRelocationTy - Returns the machine relocation type used - /// to reference a jumptable. - virtual unsigned getAbsoluteLabelMachineRelTy() const; - - /// computeRelocation - Some relocatable fields could be relocated - /// directly, avoiding the relocation symbol emission, compute the - /// final relocation value for this symbol. - virtual long int computeRelocation(unsigned SymOffset, - unsigned RelOffset, - unsigned RelTy) const; - }; -} // namespace llvm -#endif // _AMDIL_ELF_WRITER_INFO_H_ diff --git a/src/gallium/drivers/radeon/AMDILTargetMachine.cpp b/src/gallium/drivers/radeon/AMDILTargetMachine.cpp index b62a8cb614e..77fac1d97bd 100644 --- a/src/gallium/drivers/radeon/AMDILTargetMachine.cpp +++ b/src/gallium/drivers/radeon/AMDILTargetMachine.cpp @@ -52,8 +52,7 @@ AMDILTargetMachine::AMDILTargetMachine(const Target &T, Subtarget.device()->getStackAlignment(), 0), InstrInfo(*this), //JITInfo(*this), TLInfo(*this), - IntrinsicInfo(this), - ELFWriterInfo(false, true) + IntrinsicInfo(this) { setAsmVerbosityDefault(true); setMCUseLoc(false); @@ -94,12 +93,6 @@ AMDILTargetMachine::getTargetData() const return &DataLayout; } -const AMDILELFWriterInfo* -AMDILTargetMachine::getELFWriterInfo() const -{ - return Subtarget.isTargetELF() ? &ELFWriterInfo : 0; -} - const AMDILIntrinsicInfo* AMDILTargetMachine::getIntrinsicInfo() const { diff --git a/src/gallium/drivers/radeon/AMDILTargetMachine.h b/src/gallium/drivers/radeon/AMDILTargetMachine.h index 1c90e1c9d13..0ff3674c59e 100644 --- a/src/gallium/drivers/radeon/AMDILTargetMachine.h +++ b/src/gallium/drivers/radeon/AMDILTargetMachine.h @@ -14,7 +14,6 @@ #ifndef AMDILTARGETMACHINE_H_ #define AMDILTARGETMACHINE_H_ -#include "AMDILELFWriterInfo.h" #include "AMDILFrameLowering.h" #include "AMDILISelLowering.h" #include "AMDILInstrInfo.h" @@ -36,7 +35,6 @@ namespace llvm AMDILInstrInfo InstrInfo; AMDILTargetLowering TLInfo; AMDILIntrinsicInfo IntrinsicInfo; - AMDILELFWriterInfo ELFWriterInfo; bool mDebugMode; CodeGenOpt::Level mOptLevel; @@ -57,7 +55,6 @@ namespace llvm virtual const AMDILRegisterInfo* getRegisterInfo() const; virtual const TargetData* getTargetData() const; virtual const AMDILIntrinsicInfo *getIntrinsicInfo() const; - virtual const AMDILELFWriterInfo *getELFWriterInfo() const; // Pass Pipeline Configuration virtual TargetPassConfig *createPassConfig(PassManagerBase &PM); diff --git a/src/gallium/drivers/radeon/Makefile.sources b/src/gallium/drivers/radeon/Makefile.sources index 6a347945a3d..462b0eb651a 100644 --- a/src/gallium/drivers/radeon/Makefile.sources +++ b/src/gallium/drivers/radeon/Makefile.sources @@ -23,7 +23,6 @@ CPP_SOURCES := \ AMDILDevice.cpp \ AMDILDeviceInfo.cpp \ AMDILEvergreenDevice.cpp \ - AMDILELFWriterInfo.cpp \ AMDILFrameLowering.cpp \ AMDILInstrInfo.cpp \ AMDILIntrinsicInfo.cpp \ -- 2.30.2