summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-09-24 15:48:49 +0000
committerDan Gohman <gohman@apple.com>2007-09-24 15:48:49 +0000
commit75470c3bf163d364dffdb9939ab54c605d6dbb10 (patch)
tree0335ad374ce70c3c54ec4addd93dab93c875209e /llvm
parent043689cf7d25f2fd99d743a574782ead1b0cba5e (diff)
downloadbcm5719-llvm-75470c3bf163d364dffdb9939ab54c605d6dbb10.tar.gz
bcm5719-llvm-75470c3bf163d364dffdb9939ab54c605d6dbb10.zip
explicit keywords.
llvm-svn: 42262
Diffstat (limited to 'llvm')
-rw-r--r--llvm/include/llvm/CodeGen/MachineModuleInfo.h16
-rw-r--r--llvm/lib/Transforms/Scalar/GVNPRE.cpp2
2 files changed, 9 insertions, 9 deletions
diff --git a/llvm/include/llvm/CodeGen/MachineModuleInfo.h b/llvm/include/llvm/CodeGen/MachineModuleInfo.h
index bb79c19ff7a..3346c95bba7 100644
--- a/llvm/include/llvm/CodeGen/MachineModuleInfo.h
+++ b/llvm/include/llvm/CodeGen/MachineModuleInfo.h
@@ -161,7 +161,7 @@ private:
public:
AnchorDesc();
- AnchorDesc(AnchoredDesc *D);
+ explicit AnchorDesc(AnchoredDesc *D);
// Accessors
unsigned getAnchorTag() const { return AnchorTag; }
@@ -201,7 +201,7 @@ private:
protected:
- AnchoredDesc(unsigned T);
+ explicit AnchoredDesc(unsigned T);
public:
// Accessors.
@@ -291,7 +291,7 @@ private:
unsigned Flags; // Miscellaneous flags.
public:
- TypeDesc(unsigned T);
+ explicit TypeDesc(unsigned T);
// Accessors
DebugInfoDesc *getContext() const { return Context; }
@@ -382,7 +382,7 @@ private:
DebugInfoDesc *FromType; // Type derived from.
public:
- DerivedTypeDesc(unsigned T);
+ explicit DerivedTypeDesc(unsigned T);
// Accessors
TypeDesc *getFromType() const {
@@ -421,7 +421,7 @@ private:
std::vector<DebugInfoDesc *> Elements;// Information used to compose type.
public:
- CompositeTypeDesc(unsigned T);
+ explicit CompositeTypeDesc(unsigned T);
// Accessors
std::vector<DebugInfoDesc *> &getElements() { return Elements; }
@@ -536,7 +536,7 @@ private:
DebugInfoDesc *TyDesc; // Type of variable.
public:
- VariableDesc(unsigned T);
+ explicit VariableDesc(unsigned T);
// Accessors
DebugInfoDesc *getContext() const { return Context; }
@@ -595,7 +595,7 @@ private:
bool IsDefinition; // Is the global defined in context.
protected:
- GlobalDesc(unsigned T);
+ explicit GlobalDesc(unsigned T);
public:
// Accessors
@@ -962,7 +962,7 @@ struct LandingPadInfo {
Function *Personality; // Personality function.
std::vector<int> TypeIds; // List of type ids (filters negative)
- LandingPadInfo(MachineBasicBlock *MBB)
+ explicit LandingPadInfo(MachineBasicBlock *MBB)
: LandingPadBlock(MBB)
, LandingPadLabel(0)
, Personality(NULL)
diff --git a/llvm/lib/Transforms/Scalar/GVNPRE.cpp b/llvm/lib/Transforms/Scalar/GVNPRE.cpp
index b3d2fe2d5af..b164873763a 100644
--- a/llvm/lib/Transforms/Scalar/GVNPRE.cpp
+++ b/llvm/lib/Transforms/Scalar/GVNPRE.cpp
@@ -70,7 +70,7 @@ struct Expression {
SmallVector<uint32_t, 4> varargs;
Expression() { }
- Expression(ExpressionOpcode o) : opcode(o) { }
+ explicit Expression(ExpressionOpcode o) : opcode(o) { }
bool operator==(const Expression &other) const {
if (opcode != other.opcode)
OpenPOWER on IntegriCloud