[llvm-commits] [llvm] r98434 - /llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h

Chris Lattner sabre at nondot.org
Sat Mar 13 00:16:25 PST 2010


Author: lattner
Date: Sat Mar 13 02:16:25 2010
New Revision: 98434

URL: http://llvm.org/viewvc/llvm-project?rev=98434&view=rev
Log:
add builder support for mcsymbol operands.

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=98434&r1=98433&r2=98434&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineInstrBuilder.h Sat Mar 13 02:16:25 2010
@@ -131,6 +131,11 @@
     MI->addOperand(MachineOperand::CreateMetadata(MD));
     return *this;
   }
+  
+  const MachineInstrBuilder &addSym(MCSymbol *Sym) const {
+    MI->addOperand(MachineOperand::CreateMCSymbol(Sym));
+    return *this;
+  }
 };
 
 /// BuildMI - Builder interface.  Specify how to create the initial instruction





More information about the llvm-commits mailing list