Index: lib/Target/X86/X86ELFWriterInfo.cpp |
=================================================================== |
--- a/lib/Target/X86/X86ELFWriterInfo.cpp |
+++ b/lib/Target/X86/X86ELFWriterInfo.cpp |
@@ -31,7 +31,9 @@ |
X86ELFWriterInfo::~X86ELFWriterInfo() {} |
-unsigned X86ELFWriterInfo::getRelocationType(unsigned MachineRelTy) const { |
+unsigned X86ELFWriterInfo::getRelocationType(const BinaryObject &, |
+ const MachineRelocation &MR) const { |
+ unsigned int MachineRelTy = MR.getRelocationType(); |
if (is64Bit) { |
switch(MachineRelTy) { |
case X86::reloc_pcrel_word: |