mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-10 04:33:40 +00:00
clean up use of 'explicit'. This is PR934.
Patch contributed by Kevin Sopp! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@30701 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
a73a654bb4
commit
f56a8db546
@ -105,8 +105,8 @@ public:
|
||||
BasicBlock *InsertAtEnd)
|
||||
: AllocationInst(Ty, ArraySize, Malloc, 0, Name, InsertAtEnd) {}
|
||||
|
||||
explicit MallocInst(const Type *Ty, const std::string &Name,
|
||||
Instruction *InsertBefore = 0)
|
||||
MallocInst(const Type *Ty, const std::string &Name,
|
||||
Instruction *InsertBefore = 0)
|
||||
: AllocationInst(Ty, 0, Malloc, 0, Name, InsertBefore) {}
|
||||
MallocInst(const Type *Ty, const std::string &Name, BasicBlock *InsertAtEnd)
|
||||
: AllocationInst(Ty, 0, Malloc, 0, Name, InsertAtEnd) {}
|
||||
@ -222,8 +222,8 @@ class LoadInst : public UnaryInstruction {
|
||||
public:
|
||||
LoadInst(Value *Ptr, const std::string &Name, Instruction *InsertBefore);
|
||||
LoadInst(Value *Ptr, const std::string &Name, BasicBlock *InsertAtEnd);
|
||||
LoadInst(Value *Ptr, const std::string &Name = "", bool isVolatile = false,
|
||||
Instruction *InsertBefore = 0);
|
||||
explicit LoadInst(Value *Ptr, const std::string &Name = "",
|
||||
bool isVolatile = false, Instruction *InsertBefore = 0);
|
||||
LoadInst(Value *Ptr, const std::string &Name, bool isVolatile,
|
||||
BasicBlock *InsertAtEnd);
|
||||
|
||||
@ -550,8 +550,7 @@ public:
|
||||
BasicBlock *InsertAtEnd);
|
||||
explicit CallInst(Value *F, const std::string &Name = "",
|
||||
Instruction *InsertBefore = 0);
|
||||
explicit CallInst(Value *F, const std::string &Name,
|
||||
BasicBlock *InsertAtEnd);
|
||||
CallInst(Value *F, const std::string &Name, BasicBlock *InsertAtEnd);
|
||||
~CallInst();
|
||||
|
||||
virtual CallInst *clone() const;
|
||||
@ -927,8 +926,8 @@ class PHINode : public Instruction {
|
||||
unsigned ReservedSpace;
|
||||
PHINode(const PHINode &PN);
|
||||
public:
|
||||
PHINode(const Type *Ty, const std::string &Name = "",
|
||||
Instruction *InsertBefore = 0)
|
||||
explicit PHINode(const Type *Ty, const std::string &Name = "",
|
||||
Instruction *InsertBefore = 0)
|
||||
: Instruction(Ty, Instruction::PHI, 0, 0, Name, InsertBefore),
|
||||
ReservedSpace(0) {
|
||||
}
|
||||
@ -1071,7 +1070,7 @@ public:
|
||||
//
|
||||
// NOTE: If the Value* passed is of type void then the constructor behaves as
|
||||
// if it was passed NULL.
|
||||
ReturnInst(Value *retVal = 0, Instruction *InsertBefore = 0)
|
||||
explicit ReturnInst(Value *retVal = 0, Instruction *InsertBefore = 0)
|
||||
: TerminatorInst(Instruction::Ret, &RetVal, 0, InsertBefore) {
|
||||
init(retVal);
|
||||
}
|
||||
@ -1079,7 +1078,7 @@ public:
|
||||
: TerminatorInst(Instruction::Ret, &RetVal, 0, InsertAtEnd) {
|
||||
init(retVal);
|
||||
}
|
||||
ReturnInst(BasicBlock *InsertAtEnd)
|
||||
explicit ReturnInst(BasicBlock *InsertAtEnd)
|
||||
: TerminatorInst(Instruction::Ret, &RetVal, 0, InsertAtEnd) {
|
||||
}
|
||||
|
||||
@ -1135,7 +1134,7 @@ public:
|
||||
// BranchInst(BB* T, BB *F, Value *C, Inst *I) - 'br C, T, F', insert before I
|
||||
// BranchInst(BB* B, BB *I) - 'br B' insert at end
|
||||
// BranchInst(BB* T, BB *F, Value *C, BB *I) - 'br C, T, F', insert at end
|
||||
BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore = 0)
|
||||
explicit BranchInst(BasicBlock *IfTrue, Instruction *InsertBefore = 0)
|
||||
: TerminatorInst(Instruction::Br, Ops, 1, InsertBefore) {
|
||||
assert(IfTrue != 0 && "Branch destination may not be null!");
|
||||
Ops[0].init(reinterpret_cast<Value*>(IfTrue), this);
|
||||
@ -1463,10 +1462,10 @@ private:
|
||||
///
|
||||
class UnwindInst : public TerminatorInst {
|
||||
public:
|
||||
UnwindInst(Instruction *InsertBefore = 0)
|
||||
explicit UnwindInst(Instruction *InsertBefore = 0)
|
||||
: TerminatorInst(Instruction::Unwind, 0, 0, InsertBefore) {
|
||||
}
|
||||
UnwindInst(BasicBlock *InsertAtEnd)
|
||||
explicit UnwindInst(BasicBlock *InsertAtEnd)
|
||||
: TerminatorInst(Instruction::Unwind, 0, 0, InsertAtEnd) {
|
||||
}
|
||||
|
||||
@ -1499,10 +1498,10 @@ private:
|
||||
///
|
||||
class UnreachableInst : public TerminatorInst {
|
||||
public:
|
||||
UnreachableInst(Instruction *InsertBefore = 0)
|
||||
explicit UnreachableInst(Instruction *InsertBefore = 0)
|
||||
: TerminatorInst(Instruction::Unreachable, 0, 0, InsertBefore) {
|
||||
}
|
||||
UnreachableInst(BasicBlock *InsertAtEnd)
|
||||
explicit UnreachableInst(BasicBlock *InsertAtEnd)
|
||||
: TerminatorInst(Instruction::Unreachable, 0, 0, InsertAtEnd) {
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user