diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-30 00:50:55 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-30 00:50:55 +0000 |
commit | c672a1fb048fafc1fbaa9a900fb56bec3cadc8cc (patch) | |
tree | 05f4ab03ebe8760965ffe0b29f3010e854bb4120 | |
parent | 39697a83b5ebb857263fc8b9a83ea1834e9d7fe4 (diff) |
make offset operand optional.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45434 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/MachineInstr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineInstr.h b/include/llvm/CodeGen/MachineInstr.h index 1eaceefa41..4bf0cad0aa 100644 --- a/include/llvm/CodeGen/MachineInstr.h +++ b/include/llvm/CodeGen/MachineInstr.h @@ -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, |