| 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
|
|
|