forked from OSchip/llvm-project
parent
7414e21ec0
commit
1961c28d46
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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 &&
|
||||
|
|
Loading…
Reference in New Issue