[llvm-commits] [llvm] r130473 - /llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
Chris Lattner
sabre at nondot.org
Thu Apr 28 22:24:07 PDT 2011
Author: lattner
Date: Fri Apr 29 00:24:07 2011
New Revision: 130473
URL: http://llvm.org/viewvc/llvm-project?rev=130473&view=rev
Log:
add a missing operator that caused us to have to use (*MIB).foo everywhere.
Modified:
llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
Modified: llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h?rev=130473&r1=130472&r2=130473&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h Fri Apr 29 00:24:07 2011
@@ -48,6 +48,7 @@
/// 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...
More information about the llvm-commits
mailing list