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

Unified Diff: src/IceInst.h

Issue 1961743002: Subzero: Update for LLVM 3.9 (trunk). (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero@master
Patch Set: Remove unnecessary variable Created 4 years, 7 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 | « src/IceConverter.cpp ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceInst.h
diff --git a/src/IceInst.h b/src/IceInst.h
index 352a5d47ea5ce5e780346cd3fd886f243eb1468c..36b8810a82bcbf0390e66283285f6cde91763239 100644
--- a/src/IceInst.h
+++ b/src/IceInst.h
@@ -1131,4 +1131,22 @@ private:
} // end of namespace llvm
+namespace Ice {
+
+inline InstList::iterator instToIterator(Inst *Instr) {
+#ifdef PNACL_LLVM
+ return Instr;
+#else // !PNACL_LLVM
+ return Instr->getIterator();
+#endif // !PNACL_LLVM
+}
+
+inline Inst *iteratorToInst(InstList::iterator Iter) { return &*Iter; }
+
+inline const Inst *iteratorToInst(InstList::const_iterator Iter) {
+ return &*Iter;
+}
+
+} // end of namespace Ice
+
#endif // SUBZERO_SRC_ICEINST_H
« no previous file with comments | « src/IceConverter.cpp ('k') | src/IceTargetLowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698