aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-01-29 11:36:12 +0000
committerDan Gohman <gohman@apple.com>2008-01-29 11:36:12 +0000
commit1327f69d98a2cb527b275ffc93080cf31ddf6dc5 (patch)
tree3ead7a448048e2627c78dcc53fa45113d143ee96 /include/llvm/CodeGen
parent103e2d760f3fb81d426319389106a8aeb21a584d (diff)
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46506 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen')
-rw-r--r--include/llvm/CodeGen/MachineOperand.h2
-rw-r--r--include/llvm/CodeGen/MachineRegisterInfo.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h
index a782ff538c..7fb2b9e767 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 47ffbfbab7..2a62a83130 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) {