Make GetRelocType pure virtual.

llvm-svn: 147229
This commit is contained in:
Rafael Espindola 2011-12-24 01:36:25 +00:00
parent d9d1de4f69
commit a2da8aa505
2 changed files with 1 additions and 9 deletions

View File

@ -42,7 +42,7 @@ public:
virtual unsigned GetRelocType(const MCValue &Target, const MCFixup &Fixup,
bool IsPCRel, bool IsRelocWithSymbol,
int64_t Addend) const; // FIXME: add = 0
int64_t Addend) const = 0;
virtual unsigned getEFlags() const;
virtual const MCSymbol *ExplicitRelSym(const MCAssembler &Asm,
const MCValue &Target,

View File

@ -37,13 +37,5 @@ void MCELFObjectTargetWriter::adjustFixupOffset(const MCFixup &Fixup,
uint64_t &RelocOffset) {
}
unsigned MCELFObjectTargetWriter::GetRelocType(const MCValue &Target,
const MCFixup &Fixup,
bool IsPCRel,
bool IsRelocWithSymbol,
int64_t Addend) const {
return 0;
}
MCELFObjectTargetWriter::~MCELFObjectTargetWriter() {
}