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

Unified Diff: src/IceAssemblerMIPS32.h

Issue 2367743004: Subzero, MIPS32: Binding intrablock labels, unconditional branch (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Addressing comments Created 4 years, 3 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/IceInstMIPS32.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceAssemblerMIPS32.h
diff --git a/src/IceAssemblerMIPS32.h b/src/IceAssemblerMIPS32.h
index d7e73d4d834c1ffa88fbe9619a32a6abe04e91c4..c6bb661d5ba90ecc6355c7aaab2163367383d938 100644
--- a/src/IceAssemblerMIPS32.h
+++ b/src/IceAssemblerMIPS32.h
@@ -278,6 +278,16 @@ public:
return getOrCreateLabel(Number, LocalLabels);
}
+ void bindLocalLabel(const InstMIPS32Label *InstL, SizeT Number) {
+ if (BuildDefs::dump() && !getFlags().getDisableHybridAssembly()) {
+ constexpr SizeT InstSize = 0;
+ emitTextInst(InstL->getLabelName() + ":", InstSize);
+ }
+ Label *L = getOrCreateLocalLabel(Number);
+ if (!getPreliminary())
+ this->bind(L);
+ }
+
bool fixupIsPCRel(FixupKind Kind) const override {
(void)Kind;
llvm::report_fatal_error("Not yet implemented.");
« no previous file with comments | « no previous file | src/IceInstMIPS32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698