OSDN Git Service

make offset operand optional.
authorChris Lattner <sabre@nondot.org>
Sun, 30 Dec 2007 00:50:55 +0000 (00:50 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 30 Dec 2007 00:50:55 +0000 (00:50 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45434 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineInstr.h

index 1eaceef..4bf0cad 100644 (file)
@@ -333,7 +333,7 @@ public:
     Op.auxInfo.offset = Offset;
     return Op;
   }
-  static MachineOperand CreateES(const char *SymName, int Offset) {
+  static MachineOperand CreateES(const char *SymName, int Offset = 0) {
     MachineOperand Op;
     Op.opType = MachineOperand::MO_ExternalSymbol;
     Op.contents.SymbolName = SymName;
@@ -506,7 +506,7 @@ public:
       // Insert a real operand before any implicit ones.
       Operands.insert(Operands.begin()+Operands.size()-NumImplicitOps, Op);
   }
-  
+
   /// addRegOperand - Add a register operand.
   ///
   void addRegOperand(unsigned Reg, bool IsDef, bool IsImp = false,