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

Unified Diff: src/IceAssembler.h

Issue 1418523002: Add hybrid assembler concept to ARM assembler. (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
Index: src/IceAssembler.h
diff --git a/src/IceAssembler.h b/src/IceAssembler.h
index 2f5a505363f329f5b544d6378032c35ab155bca6..c3fe9c394b3f6fb2fa0502632b19e1e72d684243 100644
--- a/src/IceAssembler.h
+++ b/src/IceAssembler.h
@@ -174,6 +174,9 @@ public:
/// Create and track a fixup in the current function.
AssemblerFixup *createFixup(FixupKind Kind, const Constant *Value);
+ /// Installs a created fixup, after it has been allocated.
+ void installFixup(AssemblerFixup *F);
+
const FixupRefList &fixups() const { return Fixups; }
void setSize(intptr_t NewSize) {
@@ -268,6 +271,9 @@ public:
// Return a view of all the bytes of code for the current function.
llvm::StringRef getBufferView() const;
+ /// Emit a fixup at the current location.
+ void emitFixup(AssemblerFixup *Fixup) { Buffer.emitFixup(Fixup); }
+
const FixupRefList &fixups() const { return Buffer.fixups(); }
AssemblerFixup *createFixup(FixupKind Kind, const Constant *Value) {
@@ -291,6 +297,9 @@ protected:
explicit Assembler(AssemblerKind Kind, GlobalContext *Ctx)
: Kind(Kind), Allocator(), Ctx(Ctx), Buffer(*this) {}
+ /// Installs a created fixup, after it has been allocated.
+ void installFixup(AssemblerFixup *F) { Buffer.installFixup(F); }
+
private:
const AssemblerKind Kind;
« no previous file with comments | « pydir/run-pnacl-sz.py ('k') | src/IceAssembler.cpp » ('j') | src/IceAssemblerARM32.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698