radeon/llvm: Remove AMDILELFWriterInfo.cpp
authorTom Stellard <thomas.stellard@amd.com>
Wed, 25 Apr 2012 02:04:43 +0000 (22:04 -0400)
committerTom Stellard <thomas.stellard@amd.com>
Wed, 25 Apr 2012 13:02:17 +0000 (09:02 -0400)
src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp [deleted file]
src/gallium/drivers/radeon/AMDILELFWriterInfo.h [deleted file]
src/gallium/drivers/radeon/AMDILTargetMachine.cpp
src/gallium/drivers/radeon/AMDILTargetMachine.h
src/gallium/drivers/radeon/Makefile.sources

diff --git a/src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp b/src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp
deleted file mode 100644 (file)
index 84ae9a3..0000000
+++ /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 (file)
index 0bcffd2..0000000
+++ /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_
index b62a8cb614ea7d8facd90974cc5df6cac70886f1..77fac1d97bddd11acfe47cdcc0efe888268bcbf5 100644 (file)
@@ -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
 {
index 1c90e1c9d139ae6e77c4b6bab25d772712269efb..0ff3674c59ed447f434261da856aabc1441e8c08 100644 (file)
@@ -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);
index 6a347945a3d59b2e4896aaf6b5102f6f36275587..462b0eb651a80b4bf8ee292415f673a43365254b 100644 (file)
@@ -23,7 +23,6 @@ CPP_SOURCES := \
        AMDILDevice.cpp                 \
        AMDILDeviceInfo.cpp             \
        AMDILEvergreenDevice.cpp        \
-       AMDILELFWriterInfo.cpp          \
        AMDILFrameLowering.cpp          \
        AMDILInstrInfo.cpp              \
        AMDILIntrinsicInfo.cpp          \