| Index: src/IceAssembler.h
|
| diff --git a/src/IceAssembler.h b/src/IceAssembler.h
|
| index 8c7b277c30b8a7f12a60bd5d49ebdeab6ece0d93..d05660f58bb44b24e85bd03414f0a58729d1a6e6 100644
|
| --- a/src/IceAssembler.h
|
| +++ b/src/IceAssembler.h
|
| @@ -284,9 +284,14 @@ public:
|
|
|
| virtual bool fixupIsPCRel(FixupKind Kind) const = 0;
|
|
|
| - // Return a view of all the bytes of code for the current function.
|
| + /// Return a view of all the bytes of code for the current function.
|
| llvm::StringRef getBufferView() const;
|
|
|
| + /// Return the value of the given type in the corresponding buffer.
|
| + template <typename T> T load(intptr_t Position) const {
|
| + return Buffer.load<T>(Position);
|
| + }
|
| +
|
| /// Emit a fixup at the current location.
|
| void emitFixup(AssemblerFixup *Fixup) { Buffer.emitFixup(Fixup); }
|
|
|
|
|