Mesa (master): radeon/llvm: Remove AMDILELFWriterInfo.cpp

Tom Stellard tstellar at kemper.freedesktop.org
Wed Apr 25 14:08:47 UTC 2012


Module: Mesa
Branch: master
Commit: 9f4509343369e8adb43268329c845148ea32a114
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=9f4509343369e8adb43268329c845148ea32a114

Author: Tom Stellard <thomas.stellard at amd.com>
Date:   Tue Apr 24 22:04:43 2012 -0400

radeon/llvm: Remove AMDILELFWriterInfo.cpp

---

 src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp |   71 ---------------------
 src/gallium/drivers/radeon/AMDILELFWriterInfo.h   |   54 ----------------
 src/gallium/drivers/radeon/AMDILTargetMachine.cpp |    9 +---
 src/gallium/drivers/radeon/AMDILTargetMachine.h   |    3 -
 src/gallium/drivers/radeon/Makefile.sources       |    1 -
 5 files changed, 1 insertions(+), 137 deletions(-)

diff --git a/src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp b/src/gallium/drivers/radeon/AMDILELFWriterInfo.cpp
deleted file mode 100644
index 84ae9a3..0000000
--- 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 0bcffd2..0000000
--- 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 b62a8cb..77fac1d 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 1c90e1c..0ff3674 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 6a34794..462b0eb 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		\




More information about the mesa-commit mailing list