Index: src/IceAssemblerARM32.h |
diff --git a/src/IceAssemblerARM32.h b/src/IceAssemblerARM32.h |
index 2e141c13105a00dbea1751b78d3060f2ab63e5dc..02f996ceb6690a4bc2e23d5ee31e673a1a36d3ce 100644 |
--- a/src/IceAssemblerARM32.h |
+++ b/src/IceAssemblerARM32.h |
@@ -46,6 +46,7 @@ class MoveRelocatableFixup final : public AssemblerFixup { |
public: |
MoveRelocatableFixup() = default; |
size_t emit(GlobalContext *Ctx, const Assembler &Asm) const final; |
+ void emitOffset(Assembler *Asm) const; |
}; |
/// Handles encoding of branch and link to global location. |
@@ -56,6 +57,7 @@ class BlRelocatableFixup final : public AssemblerFixup { |
public: |
BlRelocatableFixup() = default; |
size_t emit(GlobalContext *Ctx, const Assembler &Asm) const final; |
+ void emitOffset(Assembler *Asm) const; |
}; |
class AssemblerARM32 : public Assembler { |
@@ -636,9 +638,6 @@ private: |
void emitBranch(Label *L, CondARM32::Cond, bool Link); |
- // Encodes the given Offset into the branch instruction Inst. |
- IValueT encodeBranchOffset(IOffsetT Offset, IValueT Inst); |
- |
// Returns the offset encoded in the branch instruction Inst. |
static IOffsetT decodeBranchOffset(IValueT Inst); |