[IR] Cleanup some formatting issues in the EH instructions

No functionality change is intended.

llvm-svn: 244399
This commit is contained in:
David Majnemer 2015-08-08 17:41:21 +00:00
parent 86474c7a1a
commit e880ae9e1a
2 changed files with 34 additions and 40 deletions

View File

@ -678,11 +678,9 @@ public:
}
CatchPadInst *CreateCatchPad(Type *Ty, BasicBlock *NormalDest,
BasicBlock *UnwindDest,
ArrayRef<Value *> Args,
BasicBlock *UnwindDest, ArrayRef<Value *> Args,
const Twine &Name = "") {
return Insert(CatchPadInst::Create(Ty, NormalDest, UnwindDest, Args),
Name);
return Insert(CatchPadInst::Create(Ty, NormalDest, UnwindDest, Args), Name);
}
CatchEndPadInst *CreateCatchEndPad(BasicBlock *UnwindBB = nullptr) {

View File

@ -3694,8 +3694,7 @@ protected:
CatchEndPadInst *cloneImpl() const;
public:
static CatchEndPadInst *Create(LLVMContext &C,
BasicBlock *UnwindBB = nullptr,
static CatchEndPadInst *Create(LLVMContext &C, BasicBlock *UnwindBB = nullptr,
Instruction *InsertBefore = nullptr) {
unsigned Values = UnwindBB ? 1 : 0;
return new (Values) CatchEndPadInst(C, UnwindBB, Values, InsertBefore);
@ -3781,15 +3780,15 @@ public:
const Twine &NameStr = "",
Instruction *InsertBefore = nullptr) {
unsigned Values = unsigned(Args.size()) + 2;
return new (Values) CatchPadInst(RetTy, IfNormal, IfException, Args,
Values, NameStr, InsertBefore);
return new (Values) CatchPadInst(RetTy, IfNormal, IfException, Args, Values,
NameStr, InsertBefore);
}
static CatchPadInst *Create(Type *RetTy, BasicBlock *IfNormal,
BasicBlock *IfException, ArrayRef<Value *> Args,
const Twine &NameStr, BasicBlock *InsertAtEnd) {
unsigned Values = unsigned(Args.size()) + 2;
return new (Values) CatchPadInst(RetTy, IfNormal, IfException, Args,
Values, NameStr, InsertAtEnd);
return new (Values) CatchPadInst(RetTy, IfNormal, IfException, Args, Values,
NameStr, InsertAtEnd);
}
/// Provide fast operand accessors
@ -4005,14 +4004,11 @@ public:
static CleanupPadInst *Create(Type *RetTy, ArrayRef<Value *> Args,
const Twine &NameStr = "",
Instruction *InsertBefore = nullptr) {
return new (Args.size())
CleanupPadInst(RetTy, Args, NameStr, InsertBefore);
return new (Args.size()) CleanupPadInst(RetTy, Args, NameStr, InsertBefore);
}
static CleanupPadInst *Create(Type *RetTy, ArrayRef<Value *> Args,
const Twine &NameStr,
BasicBlock *InsertAtEnd) {
return new (Args.size())
CleanupPadInst(RetTy, Args, NameStr, InsertAtEnd);
const Twine &NameStr, BasicBlock *InsertAtEnd) {
return new (Args.size()) CleanupPadInst(RetTy, Args, NameStr, InsertAtEnd);
}
/// Provide fast operand accessors