Add support to properly reference private symbols on relocation entries.
[oota-llvm.git] / include / llvm / Target / TargetELFWriterInfo.h
index a5b30c4f6e3d6db8a7f0deed5f78dbeb9ac0a149..dbcffe0ca64f72efa988f63e6e8637b88285779b 100644 (file)
@@ -99,7 +99,14 @@ namespace llvm {
 
     /// getAddendForRelTy - Gets the addend value for an ELF relocation entry
     /// based on the target relocation type. If addend is not used returns 0.
-    virtual long int getAddendForRelTy(unsigned RelTy) const = 0;
+    virtual long int getDefaultAddendForRelTy(unsigned RelTy) const = 0;
+
+    /// getRelTySize - Returns the size of relocatable field in bits
+    virtual unsigned getRelocationTySize(unsigned RelTy) const = 0;
+
+    /// getJumpTableRelocationTy - Returns the machine relocation type used
+    /// to reference a jumptable.
+    virtual unsigned getJumpTableMachineRelocationTy() const = 0;
   };
 
 } // end llvm namespace