Chromium Code Reviews| Index: src/IceAssembler.h |
| diff --git a/src/IceAssembler.h b/src/IceAssembler.h |
| index 8c7b277c30b8a7f12a60bd5d49ebdeab6ece0d93..cf802a4bda3c7ff92cee0ac21f177c664863e362 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; |
| + /// Returns the value of the given type in the corresponding buffer. |
|
Jim Stichnoth
2015/10/27 21:41:21
I would say "Return" instead of "Returns" for agre
Karl
2015/10/27 22:16:41
Done.
|
| + 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); } |