Index: lib/CodeGen/ELFWriter.h |
=================================================================== |
--- a/lib/CodeGen/ELFWriter.h |
+++ b/lib/CodeGen/ELFWriter.h |
@@ -35,6 +35,7 @@ |
class ObjectCodeEmitter; |
class MCAsmInfo; |
class TargetELFWriterInfo; |
+ class TargetELFRelocHelper; |
class TargetLoweringObjectFile; |
class raw_ostream; |
class SectionKind; |
@@ -93,6 +94,10 @@ |
/// globals and other target specific stuff. |
const MCAsmInfo *MAI; |
+ /// TERH - Target ELF Relocation Helper - used to emit |
+ /// nontrivial in-line arch-specific relocations. |
+ TargetELFRelocHelper *TERH; |
+ |
//===------------------------------------------------------------------===// |
// Properties inferred automatically from the target machine. |
//===------------------------------------------------------------------===// |
@@ -242,7 +247,7 @@ |
void EmitStringTable(const std::string &ModuleName); |
void OutputSectionsAndSectionTable(); |
void RelocateField(BinaryObject &BO, uint32_t Offset, int64_t Value, |
- unsigned Size); |
+ unsigned Size, const MachineRelocation &MR); |
unsigned SortSymbols(); |
CstExprResTy ResolveConstantExpr(const Constant *CV); |
}; |