Index: src/IceAssembler.cpp |
diff --git a/src/IceAssembler.cpp b/src/IceAssembler.cpp |
index 28851f9ea701d95c58395b2260b2b412ee513abc..88c35d7d6447b38b85dcbabeae591e2c9bc6fc8c 100644 |
--- a/src/IceAssembler.cpp |
+++ b/src/IceAssembler.cpp |
@@ -143,6 +143,12 @@ llvm::StringRef Assembler::getBufferView() const { |
Buffer.size()); |
} |
+void Assembler::bindRelocOffset(RelocOffset *Offset) { |
+ if (!getPreliminary()) { |
+ Offset->setOffset(Buffer.getPosition()); |
+ } |
+} |
+ |
void Assembler::emitIASBytes(GlobalContext *Ctx) const { |
Ostream &Str = Ctx->getStrEmit(); |
intptr_t EndPosition = Buffer.size(); |