diff options
author | Dan Gohman <djg@cray.com> | 2008-01-29 11:36:12 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2008-01-29 11:36:12 +0000 |
commit | 495d2d6980c3372c88ada8e54c272512c2f19626 (patch) | |
tree | 3ead7a448048e2627c78dcc53fa45113d143ee96 | |
parent | f914a00e263cbf8a66b0665e0446f72bd315da7d (diff) | |
download | external_llvm-495d2d6980c3372c88ada8e54c272512c2f19626.zip external_llvm-495d2d6980c3372c88ada8e54c272512c2f19626.tar.gz external_llvm-495d2d6980c3372c88ada8e54c272512c2f19626.tar.bz2 |
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46506 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/CodeGen/MachineOperand.h | 2 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineRegisterInfo.h | 4 | ||||
-rw-r--r-- | include/llvm/PassSupport.h | 2 | ||||
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 4 |
4 files changed, 6 insertions, 6 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h index a782ff5..7fb2b9e 100644 --- a/include/llvm/CodeGen/MachineOperand.h +++ b/include/llvm/CodeGen/MachineOperand.h @@ -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; diff --git a/include/llvm/CodeGen/MachineRegisterInfo.h b/include/llvm/CodeGen/MachineRegisterInfo.h index 47ffbfb..2a62a83 100644 --- a/include/llvm/CodeGen/MachineRegisterInfo.h +++ b/include/llvm/CodeGen/MachineRegisterInfo.h @@ -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) { diff --git a/include/llvm/PassSupport.h b/include/llvm/PassSupport.h index 9e86a72..1ddc2df 100644 --- a/include/llvm/PassSupport.h +++ b/include/llvm/PassSupport.h @@ -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. diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 310fa7f..94477ba 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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 |