aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineInstrBuilder.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-04-29 05:24:07 +0000
committerChris Lattner <sabre@nondot.org>2011-04-29 05:24:07 +0000
commit07e7998f09195806e9fe0430a2d5769020dd5dd0 (patch)
tree3e4579b4ddf2f72d0bae49728bdaa72f3c3ede8c /include/llvm/CodeGen/MachineInstrBuilder.h
parent4892dff07e7d99eb37aee868c4f2c91e9c7eba14 (diff)
downloadexternal_llvm-07e7998f09195806e9fe0430a2d5769020dd5dd0.zip
external_llvm-07e7998f09195806e9fe0430a2d5769020dd5dd0.tar.gz
external_llvm-07e7998f09195806e9fe0430a2d5769020dd5dd0.tar.bz2
add a missing operator that caused us to have to use (*MIB).foo everywhere.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130473 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 f04dee2..967e019 100644
--- a/include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/include/llvm/CodeGen/MachineInstrBuilder.h
@@ -48,6 +48,7 @@ public:
/// Allow automatic conversion to the machine instruction we are working on.
///
operator MachineInstr*() const { return MI; }
+ MachineInstr *operator->() const { return MI; }
operator MachineBasicBlock::iterator() const { return MI; }
/// addReg - Add a new virtual register operand...