summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstrBuilder.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-01 04:03:10 +0000
committerChris Lattner <sabre@nondot.org>2004-04-01 04:03:10 +0000
commit024e91f6f6b9c65d767efe507df213c5c53744c7 (patch)
treef44c7b4d90b21d506e344484e24b23fa286764dc /include/llvm/CodeGen/MachineInstrBuilder.h
parent140385e0aceb92a9e588721e11fd60c15724aae4 (diff)
downloadllvm-024e91f6f6b9c65d767efe507df213c5c53744c7.tar.gz
llvm-024e91f6f6b9c65d767efe507df213c5c53744c7.tar.bz2
llvm-024e91f6f6b9c65d767efe507df213c5c53744c7.tar.xz
Allow converting a builder to an iterator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r--include/llvm/CodeGen/MachineInstrBuilder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h
index 4d63d99e45..138f8b58d8 100644
--- a/include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/include/llvm/CodeGen/MachineInstrBuilder.h
@@ -35,6 +35,7 @@ public:
/// Allow automatic conversion to the machine instruction we are working on.
///
operator MachineInstr*() const { return MI; }
+ operator MachineBasicBlock::iterator() const { return MI; }
/// addReg - Add a new virtual register operand...
///