mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-03-05 02:49:18 +00:00
Remove the unused TheTarget member.
llvm-svn: 120168
This commit is contained in:
parent
0d9fb7f72e
commit
0641196380
@ -29,10 +29,7 @@ class TargetAsmBackend {
|
|||||||
TargetAsmBackend(const TargetAsmBackend &); // DO NOT IMPLEMENT
|
TargetAsmBackend(const TargetAsmBackend &); // DO NOT IMPLEMENT
|
||||||
void operator=(const TargetAsmBackend &); // DO NOT IMPLEMENT
|
void operator=(const TargetAsmBackend &); // DO NOT IMPLEMENT
|
||||||
protected: // Can only create subclasses.
|
protected: // Can only create subclasses.
|
||||||
TargetAsmBackend(const Target &);
|
TargetAsmBackend();
|
||||||
|
|
||||||
/// TheTarget - The Target that this machine was created for.
|
|
||||||
const Target &TheTarget;
|
|
||||||
|
|
||||||
unsigned HasReliableSymbolDifference : 1;
|
unsigned HasReliableSymbolDifference : 1;
|
||||||
unsigned HasScatteredSymbols : 1;
|
unsigned HasScatteredSymbols : 1;
|
||||||
@ -40,8 +37,6 @@ protected: // Can only create subclasses.
|
|||||||
public:
|
public:
|
||||||
virtual ~TargetAsmBackend();
|
virtual ~TargetAsmBackend();
|
||||||
|
|
||||||
const Target &getTarget() const { return TheTarget; }
|
|
||||||
|
|
||||||
virtual const MCObjectFormat &getObjectFormat() const = 0;
|
virtual const MCObjectFormat &getObjectFormat() const = 0;
|
||||||
|
|
||||||
/// createObjectWriter - Create a new MCObjectWriter instance for use by the
|
/// createObjectWriter - Create a new MCObjectWriter instance for use by the
|
||||||
|
@ -10,9 +10,8 @@
|
|||||||
#include "llvm/Target/TargetAsmBackend.h"
|
#include "llvm/Target/TargetAsmBackend.h"
|
||||||
using namespace llvm;
|
using namespace llvm;
|
||||||
|
|
||||||
TargetAsmBackend::TargetAsmBackend(const Target &T)
|
TargetAsmBackend::TargetAsmBackend()
|
||||||
: TheTarget(T),
|
: HasReliableSymbolDifference(false),
|
||||||
HasReliableSymbolDifference(false),
|
|
||||||
HasScatteredSymbols(false)
|
HasScatteredSymbols(false)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -27,7 +27,7 @@ using namespace llvm;
|
|||||||
namespace {
|
namespace {
|
||||||
class ARMAsmBackend : public TargetAsmBackend {
|
class ARMAsmBackend : public TargetAsmBackend {
|
||||||
public:
|
public:
|
||||||
ARMAsmBackend(const Target &T) : TargetAsmBackend(T) {}
|
ARMAsmBackend(const Target &T) : TargetAsmBackend() {}
|
||||||
|
|
||||||
bool MayNeedRelaxation(const MCInst &Inst) const;
|
bool MayNeedRelaxation(const MCInst &Inst) const;
|
||||||
|
|
||||||
|
@ -45,7 +45,7 @@ namespace {
|
|||||||
class MBlazeAsmBackend : public TargetAsmBackend {
|
class MBlazeAsmBackend : public TargetAsmBackend {
|
||||||
public:
|
public:
|
||||||
MBlazeAsmBackend(const Target &T)
|
MBlazeAsmBackend(const Target &T)
|
||||||
: TargetAsmBackend(T) {
|
: TargetAsmBackend() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool MayNeedRelaxation(const MCInst &Inst) const;
|
bool MayNeedRelaxation(const MCInst &Inst) const;
|
||||||
|
@ -19,8 +19,9 @@ using namespace llvm;
|
|||||||
|
|
||||||
namespace {
|
namespace {
|
||||||
class PPCAsmBackend : public TargetAsmBackend {
|
class PPCAsmBackend : public TargetAsmBackend {
|
||||||
|
const Target &TheTarget;
|
||||||
public:
|
public:
|
||||||
PPCAsmBackend(const Target &T) : TargetAsmBackend(T) {}
|
PPCAsmBackend(const Target &T) : TargetAsmBackend(), TheTarget(T) {}
|
||||||
|
|
||||||
bool MayNeedRelaxation(const MCInst &Inst) const {
|
bool MayNeedRelaxation(const MCInst &Inst) const {
|
||||||
// FIXME.
|
// FIXME.
|
||||||
|
@ -48,7 +48,7 @@ namespace {
|
|||||||
class X86AsmBackend : public TargetAsmBackend {
|
class X86AsmBackend : public TargetAsmBackend {
|
||||||
public:
|
public:
|
||||||
X86AsmBackend(const Target &T)
|
X86AsmBackend(const Target &T)
|
||||||
: TargetAsmBackend(T) {}
|
: TargetAsmBackend() {}
|
||||||
|
|
||||||
void ApplyFixup(const MCFixup &Fixup, MCDataFragment &DF,
|
void ApplyFixup(const MCFixup &Fixup, MCDataFragment &DF,
|
||||||
uint64_t Value) const {
|
uint64_t Value) const {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user