| Index: include/llvm/Target/TargetELFWriterInfo.h
|
| ===================================================================
|
| --- a/include/llvm/Target/TargetELFWriterInfo.h
|
| +++ b/include/llvm/Target/TargetELFWriterInfo.h
|
| @@ -18,7 +18,8 @@
|
| class Function;
|
| class TargetData;
|
| class TargetMachine;
|
| -
|
| + class MachineRelocation;
|
| + class BinaryObject;
|
| //===--------------------------------------------------------------------===//
|
| // TargetELFWriterInfo
|
| //===--------------------------------------------------------------------===//
|
| @@ -89,8 +90,10 @@
|
| }
|
|
|
| /// getRelocationType - Returns the target specific ELF Relocation type.
|
| - /// 'MachineRelTy' contains the object code independent relocation type
|
| - virtual unsigned getRelocationType(unsigned MachineRelTy) const = 0;
|
| + /// 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 = 0;
|
|
|
| /// hasRelocationAddend - True if the target uses an addend in the
|
| /// ELF relocation entry.
|
|
|