[llvm-commits] [llvm] r120168 - in /llvm/trunk: include/llvm/Target/TargetAsmBackend.h lib/MC/TargetAsmBackend.cpp lib/Target/ARM/ARMAsmBackend.cpp lib/Target/MBlaze/MBlazeAsmBackend.cpp lib/Target/PowerPC/PPCAsmBackend.cpp lib/Target/X86/X86AsmBackend.cpp
Rafael Espindola
rafael.espindola at gmail.com
Thu Nov 25 20:24:21 PST 2010
Author: rafael
Date: Thu Nov 25 22:24:21 2010
New Revision: 120168
URL: http://llvm.org/viewvc/llvm-project?rev=120168&view=rev
Log:
Remove the unused TheTarget member.
Modified:
llvm/trunk/include/llvm/Target/TargetAsmBackend.h
llvm/trunk/lib/MC/TargetAsmBackend.cpp
llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
llvm/trunk/lib/Target/MBlaze/MBlazeAsmBackend.cpp
llvm/trunk/lib/Target/PowerPC/PPCAsmBackend.cpp
llvm/trunk/lib/Target/X86/X86AsmBackend.cpp
Modified: llvm/trunk/include/llvm/Target/TargetAsmBackend.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Target/TargetAsmBackend.h?rev=120168&r1=120167&r2=120168&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Target/TargetAsmBackend.h (original)
+++ llvm/trunk/include/llvm/Target/TargetAsmBackend.h Thu Nov 25 22:24:21 2010
@@ -29,10 +29,7 @@
TargetAsmBackend(const TargetAsmBackend &); // DO NOT IMPLEMENT
void operator=(const TargetAsmBackend &); // DO NOT IMPLEMENT
protected: // Can only create subclasses.
- TargetAsmBackend(const Target &);
-
- /// TheTarget - The Target that this machine was created for.
- const Target &TheTarget;
+ TargetAsmBackend();
unsigned HasReliableSymbolDifference : 1;
unsigned HasScatteredSymbols : 1;
@@ -40,8 +37,6 @@
public:
virtual ~TargetAsmBackend();
- const Target &getTarget() const { return TheTarget; }
-
virtual const MCObjectFormat &getObjectFormat() const = 0;
/// createObjectWriter - Create a new MCObjectWriter instance for use by the
Modified: llvm/trunk/lib/MC/TargetAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/TargetAsmBackend.cpp?rev=120168&r1=120167&r2=120168&view=diff
==============================================================================
--- llvm/trunk/lib/MC/TargetAsmBackend.cpp (original)
+++ llvm/trunk/lib/MC/TargetAsmBackend.cpp Thu Nov 25 22:24:21 2010
@@ -10,9 +10,8 @@
#include "llvm/Target/TargetAsmBackend.h"
using namespace llvm;
-TargetAsmBackend::TargetAsmBackend(const Target &T)
- : TheTarget(T),
- HasReliableSymbolDifference(false),
+TargetAsmBackend::TargetAsmBackend()
+ : HasReliableSymbolDifference(false),
HasScatteredSymbols(false)
{
}
Modified: llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp?rev=120168&r1=120167&r2=120168&view=diff
==============================================================================
--- llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/ARM/ARMAsmBackend.cpp Thu Nov 25 22:24:21 2010
@@ -27,7 +27,7 @@
namespace {
class ARMAsmBackend : public TargetAsmBackend {
public:
- ARMAsmBackend(const Target &T) : TargetAsmBackend(T) {}
+ ARMAsmBackend(const Target &T) : TargetAsmBackend() {}
bool MayNeedRelaxation(const MCInst &Inst) const;
Modified: llvm/trunk/lib/Target/MBlaze/MBlazeAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/MBlaze/MBlazeAsmBackend.cpp?rev=120168&r1=120167&r2=120168&view=diff
==============================================================================
--- llvm/trunk/lib/Target/MBlaze/MBlazeAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/MBlaze/MBlazeAsmBackend.cpp Thu Nov 25 22:24:21 2010
@@ -45,7 +45,7 @@
class MBlazeAsmBackend : public TargetAsmBackend {
public:
MBlazeAsmBackend(const Target &T)
- : TargetAsmBackend(T) {
+ : TargetAsmBackend() {
}
bool MayNeedRelaxation(const MCInst &Inst) const;
Modified: llvm/trunk/lib/Target/PowerPC/PPCAsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/PowerPC/PPCAsmBackend.cpp?rev=120168&r1=120167&r2=120168&view=diff
==============================================================================
--- llvm/trunk/lib/Target/PowerPC/PPCAsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/PowerPC/PPCAsmBackend.cpp Thu Nov 25 22:24:21 2010
@@ -19,8 +19,9 @@
namespace {
class PPCAsmBackend : public TargetAsmBackend {
+ const Target &TheTarget;
public:
- PPCAsmBackend(const Target &T) : TargetAsmBackend(T) {}
+ PPCAsmBackend(const Target &T) : TargetAsmBackend(), TheTarget(T) {}
bool MayNeedRelaxation(const MCInst &Inst) const {
// FIXME.
Modified: llvm/trunk/lib/Target/X86/X86AsmBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86AsmBackend.cpp?rev=120168&r1=120167&r2=120168&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86AsmBackend.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86AsmBackend.cpp Thu Nov 25 22:24:21 2010
@@ -48,7 +48,7 @@
class X86AsmBackend : public TargetAsmBackend {
public:
X86AsmBackend(const Target &T)
- : TargetAsmBackend(T) {}
+ : TargetAsmBackend() {}
void ApplyFixup(const MCFixup &Fixup, MCDataFragment &DF,
uint64_t Value) const {
More information about the llvm-commits
mailing list