make offset operand optional.

llvm-svn: 45434
This commit is contained in:
Chris Lattner 2007-12-30 00:50:55 +00:00
parent 4b762496a9
commit b65293a075
1 changed files with 2 additions and 2 deletions

View 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,