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;
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
#include "llvm/Target/TargetAsmBackend.h"
using namespace llvm;
-TargetAsmBackend::TargetAsmBackend(const Target &T)
- : TheTarget(T),
- HasReliableSymbolDifference(false),
+TargetAsmBackend::TargetAsmBackend()
+ : HasReliableSymbolDifference(false),
HasScatteredSymbols(false)
{
}
namespace {
class ARMAsmBackend : public TargetAsmBackend {
public:
- ARMAsmBackend(const Target &T) : TargetAsmBackend(T) {}
+ ARMAsmBackend(const Target &T) : TargetAsmBackend() {}
bool MayNeedRelaxation(const MCInst &Inst) const;
class MBlazeAsmBackend : public TargetAsmBackend {
public:
MBlazeAsmBackend(const Target &T)
- : TargetAsmBackend(T) {
+ : TargetAsmBackend() {
}
bool MayNeedRelaxation(const MCInst &Inst) const;
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.
class X86AsmBackend : public TargetAsmBackend {
public:
X86AsmBackend(const Target &T)
- : TargetAsmBackend(T) {}
+ : TargetAsmBackend() {}
void ApplyFixup(const MCFixup &Fixup, MCDataFragment &DF,
uint64_t Value) const {