aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/CodeGen/MachineInstrBuilder.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h
index 68580badae..05bece330c 100644
--- a/include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/include/llvm/CodeGen/MachineInstrBuilder.h
@@ -48,7 +48,7 @@ struct MachineInstrBuilder {
/// (Same as addReg(RegNo, true) but shorter and more obvious).
///
const MachineInstrBuilder &addClobber(int RegNo) const {
- MI->addRegOperand(RegNo, true);
+ MI->addRegOperand(RegNo, MOTy::Def);
return *this;
}
@@ -86,6 +86,11 @@ struct MachineInstrBuilder {
MI->addMachineBasicBlockOperand(MBB);
return *this;
}
+
+ const MachineInstrBuilder &addFrameIndex(unsigned Idx) const {
+ MI->addFrameIndexOperand(Idx);
+ return *this;
+ }
};
/// BuildMI - Builder interface. Specify how to create the initial instruction