[llvm-commits] [llvm] r147229 - in /llvm/trunk: include/llvm/MC/MCELFObjectWriter.h lib/MC/MCELFObjectTargetWriter.cpp
Rafael Espindola
rafael.espindola at gmail.com
Fri Dec 23 17:36:25 PST 2011
Author: rafael
Date: Fri Dec 23 19:36:25 2011
New Revision: 147229
URL: http://llvm.org/viewvc/llvm-project?rev=147229&view=rev
Log:
Make GetRelocType pure virtual.
Modified:
llvm/trunk/include/llvm/MC/MCELFObjectWriter.h
llvm/trunk/lib/MC/MCELFObjectTargetWriter.cpp
Modified: llvm/trunk/include/llvm/MC/MCELFObjectWriter.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCELFObjectWriter.h?rev=147229&r1=147228&r2=147229&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCELFObjectWriter.h (original)
+++ llvm/trunk/include/llvm/MC/MCELFObjectWriter.h Fri Dec 23 19:36:25 2011
@@ -42,7 +42,7 @@
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,
Modified: llvm/trunk/lib/MC/MCELFObjectTargetWriter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCELFObjectTargetWriter.cpp?rev=147229&r1=147228&r2=147229&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCELFObjectTargetWriter.cpp (original)
+++ llvm/trunk/lib/MC/MCELFObjectTargetWriter.cpp Fri Dec 23 19:36:25 2011
@@ -37,13 +37,5 @@
uint64_t &RelocOffset) {
}
-unsigned MCELFObjectTargetWriter::GetRelocType(const MCValue &Target,
- const MCFixup &Fixup,
- bool IsPCRel,
- bool IsRelocWithSymbol,
- int64_t Addend) const {
- return 0;
-}
-
MCELFObjectTargetWriter::~MCELFObjectTargetWriter() {
}
More information about the llvm-commits
mailing list