Further cleanups. Thanks for Sean Silva for noticing it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168556 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2012-11-25 02:50:32 +00:00
parent 7279809d97
commit 14a708b98e

View File

@@ -284,67 +284,55 @@ namespace llvm {
public: public:
static MCCFIInstruction static MCCFIInstruction
createOffset(MCSymbol *L, unsigned Register, int Offset) { createOffset(MCSymbol *L, unsigned Register, int Offset) {
MCCFIInstruction Ret(OpOffset, L, Register, Offset, ""); return MCCFIInstruction(OpOffset, L, Register, Offset, "");
return Ret;
} }
static MCCFIInstruction static MCCFIInstruction
createDefCfaRegister(MCSymbol *L, unsigned Register) { createDefCfaRegister(MCSymbol *L, unsigned Register) {
MCCFIInstruction Ret(OpDefCfaRegister, L, Register, 0, ""); return MCCFIInstruction(OpDefCfaRegister, L, Register, 0, "");
return Ret;
} }
static MCCFIInstruction createDefCfaOffset(MCSymbol *L, int Offset) { static MCCFIInstruction createDefCfaOffset(MCSymbol *L, int Offset) {
MCCFIInstruction Ret(OpDefCfaOffset, L, 0, -Offset, ""); return MCCFIInstruction(OpDefCfaOffset, L, 0, -Offset, "");
return Ret;
} }
static MCCFIInstruction static MCCFIInstruction
createDefCfa(MCSymbol *L, unsigned Register, int Offset) { createDefCfa(MCSymbol *L, unsigned Register, int Offset) {
MCCFIInstruction Ret(OpDefCfa, L, Register, -Offset, ""); return MCCFIInstruction(OpDefCfa, L, Register, -Offset, "");
return Ret;
} }
static MCCFIInstruction createUndefined(MCSymbol *L, unsigned Register) { static MCCFIInstruction createUndefined(MCSymbol *L, unsigned Register) {
MCCFIInstruction Ret(OpUndefined, L, Register, 0, ""); return MCCFIInstruction(OpUndefined, L, Register, 0, "");
return Ret;
} }
static MCCFIInstruction createRestore(MCSymbol *L, unsigned Register) { static MCCFIInstruction createRestore(MCSymbol *L, unsigned Register) {
MCCFIInstruction Ret(OpRestore, L, Register, 0, ""); return MCCFIInstruction(OpRestore, L, Register, 0, "");
return Ret;
} }
static MCCFIInstruction createSameValue(MCSymbol *L, unsigned Register) { static MCCFIInstruction createSameValue(MCSymbol *L, unsigned Register) {
MCCFIInstruction Ret(OpSameValue, L, Register, 0, ""); return MCCFIInstruction(OpSameValue, L, Register, 0, "");
return Ret;
} }
static MCCFIInstruction createRestoreState(MCSymbol *L) { static MCCFIInstruction createRestoreState(MCSymbol *L) {
MCCFIInstruction Ret(OpRestoreState, L, 0, 0, ""); return MCCFIInstruction(OpRestoreState, L, 0, 0, "");
return Ret;
} }
static MCCFIInstruction createRememberState(MCSymbol *L) { static MCCFIInstruction createRememberState(MCSymbol *L) {
MCCFIInstruction Ret(OpRememberState, L, 0, 0, ""); return MCCFIInstruction(OpRememberState, L, 0, 0, "");
return Ret;
} }
static MCCFIInstruction static MCCFIInstruction
createRelOffset(MCSymbol *L, unsigned Register, int Offset) { createRelOffset(MCSymbol *L, unsigned Register, int Offset) {
MCCFIInstruction Ret(OpRelOffset, L, Register, Offset, ""); return MCCFIInstruction(OpRelOffset, L, Register, Offset, "");
return Ret;
} }
static MCCFIInstruction static MCCFIInstruction
createAdjustCfaOffset(MCSymbol *L, int Adjustment) { createAdjustCfaOffset(MCSymbol *L, int Adjustment) {
MCCFIInstruction Ret(OpAdjustCfaOffset, L, 0, Adjustment, ""); return MCCFIInstruction(OpAdjustCfaOffset, L, 0, Adjustment, "");
return Ret;
} }
static MCCFIInstruction createEscape(MCSymbol *L, StringRef Vals) { static MCCFIInstruction createEscape(MCSymbol *L, StringRef Vals) {
MCCFIInstruction Ret(OpEscape, L, 0, 0, Vals); return MCCFIInstruction(OpEscape, L, 0, 0, Vals);
return Ret;
} }
OpType getOperation() const { return Operation; } OpType getOperation() const { return Operation; }