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

Side by Side Diff: src/IceInst.h

Issue 2297363002: Subzero: Fix a build error against LLVM trunk. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 //===- subzero/src/IceInst.h - High-level instructions ----------*- C++ -*-===// 1 //===- subzero/src/IceInst.h - High-level instructions ----------*- C++ -*-===//
2 // 2 //
3 // The Subzero Code Generator 3 // The Subzero Code Generator
4 // 4 //
5 // This file is distributed under the University of Illinois Open Source 5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details. 6 // License. See LICENSE.TXT for details.
7 // 7 //
8 //===----------------------------------------------------------------------===// 8 //===----------------------------------------------------------------------===//
9 /// 9 ///
10 /// \file 10 /// \file
(...skipping 1143 matching lines...) Expand 10 before | Expand all | Expand 10 after
1154 return Instr->getIterator(); 1154 return Instr->getIterator();
1155 #endif // !PNACL_LLVM 1155 #endif // !PNACL_LLVM
1156 } 1156 }
1157 1157
1158 inline Inst *iteratorToInst(InstList::iterator Iter) { return &*Iter; } 1158 inline Inst *iteratorToInst(InstList::iterator Iter) { return &*Iter; }
1159 1159
1160 inline const Inst *iteratorToInst(InstList::const_iterator Iter) { 1160 inline const Inst *iteratorToInst(InstList::const_iterator Iter) {
1161 return &*Iter; 1161 return &*Iter;
1162 } 1162 }
1163 1163
1164 inline InstList::iterator
1165 reverseToForwardIterator(InstList::reverse_iterator RI) {
1166 #ifdef PNACL_LLVM
1167 return RI.base();
1168 #else // !PNACL_LLVM
1169 return ++RI.getReverse();
1170 #endif // !PNACL_LLVM
1171 }
1172
1164 } // end of namespace Ice 1173 } // end of namespace Ice
1165 1174
1166 #endif // SUBZERO_SRC_ICEINST_H 1175 #endif // SUBZERO_SRC_ICEINST_H
OLDNEW
« no previous file with comments | « no previous file | src/IceTargetLoweringARM32.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698