mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43464 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9330c3af45
commit
9962054775
@ -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
Block a user