Index: lib/Target/X86/X86ELFWriterInfo.h |
=================================================================== |
--- a/lib/Target/X86/X86ELFWriterInfo.h |
+++ b/lib/Target/X86/X86ELFWriterInfo.h |
@@ -17,7 +17,8 @@ |
#include "llvm/Target/TargetELFWriterInfo.h" |
namespace llvm { |
- |
+ class BinaryObject; |
+ class MachineRelocation; |
class X86ELFWriterInfo : public TargetELFWriterInfo { |
// ELF Relocation types for X86 |
@@ -42,8 +43,10 @@ |
virtual ~X86ELFWriterInfo(); |
/// getRelocationType - Returns the target specific ELF Relocation type. |
- /// 'MachineRelTy' contains the object code independent relocation type |
- virtual unsigned getRelocationType(unsigned MachineRelTy) const; |
+ /// S is the ELF section blob that contains the relocation |
+ /// MR contains the object code independent relocation type |
+ virtual unsigned getRelocationType(const BinaryObject &S, |
+ const MachineRelocation &MR) const; |
/// hasRelocationAddend - True if the target uses an addend in the |
/// ELF relocation entry. |