mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-18 09:27:27 +00:00
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46506 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
103e2d760f
commit
1327f69d98
@ -97,7 +97,7 @@ private:
|
||||
} OffsetedInfo;
|
||||
} Contents;
|
||||
|
||||
MachineOperand(MachineOperandType K) : OpKind(K), ParentMI(0) {}
|
||||
explicit MachineOperand(MachineOperandType K) : OpKind(K), ParentMI(0) {}
|
||||
public:
|
||||
MachineOperand(const MachineOperand &M) {
|
||||
*this = M;
|
||||
|
@ -54,7 +54,7 @@ class MachineRegisterInfo {
|
||||
MachineRegisterInfo(const MachineRegisterInfo&); // DO NOT IMPLEMENT
|
||||
void operator=(const MachineRegisterInfo&); // DO NOT IMPLEMENT
|
||||
public:
|
||||
MachineRegisterInfo(const MRegisterInfo &MRI);
|
||||
explicit MachineRegisterInfo(const MRegisterInfo &MRI);
|
||||
~MachineRegisterInfo();
|
||||
|
||||
//===--------------------------------------------------------------------===//
|
||||
@ -203,7 +203,7 @@ public:
|
||||
class defusechain_iterator
|
||||
: public forward_iterator<MachineInstr, ptrdiff_t> {
|
||||
MachineOperand *Op;
|
||||
defusechain_iterator(MachineOperand *op) : Op(op) {
|
||||
explicit defusechain_iterator(MachineOperand *op) : Op(op) {
|
||||
// If the first node isn't one we're interested in, advance to one that
|
||||
// we are interested in.
|
||||
if (op) {
|
||||
|
@ -144,7 +144,7 @@ struct RegisterPassBase {
|
||||
: PIObj(Name, Arg, TI, NormalCtor, CFGOnly) {
|
||||
registerPass();
|
||||
}
|
||||
RegisterPassBase(intptr_t TI)
|
||||
explicit RegisterPassBase(intptr_t TI)
|
||||
: PIObj("", "", TI) {
|
||||
// This ctor may only be used for analysis groups: it does not auto-register
|
||||
// the pass.
|
||||
|
@ -57,10 +57,10 @@ public:
|
||||
/// @{
|
||||
public:
|
||||
/// @brief Construct from a module
|
||||
SlotMachine(const Module *M);
|
||||
explicit SlotMachine(const Module *M);
|
||||
|
||||
/// @brief Construct from a function, starting out in incorp state.
|
||||
SlotMachine(const Function *F);
|
||||
explicit SlotMachine(const Function *F);
|
||||
|
||||
/// @}
|
||||
/// @name Accessors
|
||||
|
Loading…
Reference in New Issue
Block a user