Add explicit keywords.

llvm-svn: 43464
This commit is contained in:
Dan Gohman 2007-10-29 19:52:04 +00:00
parent 7414e21ec0
commit 1961c28d46
3 changed files with 4 additions and 4 deletions

View File

@ -164,7 +164,7 @@ public:
class iterator : public forward_iterator<HashNodePair, ptrdiff_t> {
HashNodePair *CurNode;
public:
iterator(HashNodePair *CN = 0) : CurNode(CN) {}
explicit iterator(HashNodePair *CN = 0) : CurNode(CN) {}
bool operator==(const iterator& x) const {
return CurNode == x.CurNode;
@ -262,7 +262,7 @@ public:
/// AliasSetTracker ctor - Create an empty collection of AliasSets, and use
/// the specified alias analysis object to disambiguate load and store
/// addresses.
AliasSetTracker(AliasAnalysis &aa) : AA(aa) {}
explicit AliasSetTracker(AliasAnalysis &aa) : AA(aa) {}
/// add methods - These methods are used to add different types of
/// instructions to the alias sets. Adding a new instruction can result in

View File

@ -78,7 +78,7 @@ namespace {
///
struct VISIBILITY_HIDDEN BVNImpl : public InstVisitor<BVNImpl> {
std::vector<Value*> &RetVals;
BVNImpl(std::vector<Value*> &RV) : RetVals(RV) {}
explicit BVNImpl(std::vector<Value*> &RV) : RetVals(RV) {}
void visitCastInst(CastInst &I);
void visitGetElementPtrInst(GetElementPtrInst &I);

View File

@ -99,7 +99,7 @@ class VISIBILITY_HIDDEN DAGTypeLegalizer {
SmallVector<SDNode*, 128> Worklist;
public:
DAGTypeLegalizer(SelectionDAG &dag)
explicit DAGTypeLegalizer(SelectionDAG &dag)
: TLI(dag.getTargetLoweringInfo()), DAG(dag),
ValueTypeActions(TLI.getValueTypeActions()) {
assert(MVT::LAST_VALUETYPE <= 32 &&