Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: src/IceAssembler.h

Issue 1417173003: Fix ARM integrated assembler to be able to compile spec2k examples. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Fix nits. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/IceAssembler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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); }
« no previous file with comments | « no previous file | src/IceAssembler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698