diff options
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Analysis/LoopPass.h | 2 | ||||
-rw-r--r-- | include/llvm/CodeGen/MachineConstantPool.h | 3 | ||||
-rw-r--r-- | include/llvm/Target/TargetLowering.h | 4 | ||||
-rw-r--r-- | include/llvm/Transforms/IPO/InlinerPass.h | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/include/llvm/Analysis/LoopPass.h b/include/llvm/Analysis/LoopPass.h index 4914df7..6d6d94c 100644 --- a/include/llvm/Analysis/LoopPass.h +++ b/include/llvm/Analysis/LoopPass.h @@ -84,7 +84,7 @@ class LPPassManager : public FunctionPass, public PMDataManager { public: static char ID; - LPPassManager(int Depth); + explicit LPPassManager(int Depth); /// run - Execute all of the passes scheduled for execution. Keep track of /// whether any of the passes modifies the module, and if so, return true. diff --git a/include/llvm/CodeGen/MachineConstantPool.h b/include/llvm/CodeGen/MachineConstantPool.h index 1500053..ec00fc1 100644 --- a/include/llvm/CodeGen/MachineConstantPool.h +++ b/include/llvm/CodeGen/MachineConstantPool.h @@ -114,7 +114,8 @@ class MachineConstantPool { std::vector<MachineConstantPoolEntry> Constants; ///< The pool of constants. public: /// @brief The only constructor. - MachineConstantPool(const TargetData *td) : TD(td), PoolAlignment(1) {} + explicit MachineConstantPool(const TargetData *td) + : TD(td), PoolAlignment(1) {} ~MachineConstantPool(); /// getConstantPoolAlignment - Return the log2 of the alignment required by diff --git a/include/llvm/Target/TargetLowering.h b/include/llvm/Target/TargetLowering.h index a1aa50c..c22d399 100644 --- a/include/llvm/Target/TargetLowering.h +++ b/include/llvm/Target/TargetLowering.h @@ -76,7 +76,7 @@ public: SchedulingForRegPressure // Scheduling for lowest register pressure. }; - TargetLowering(TargetMachine &TM); + explicit TargetLowering(TargetMachine &TM); virtual ~TargetLowering(); TargetMachine &getTargetMachine() const { return TM; } @@ -510,7 +510,7 @@ public: SDOperand Old; SDOperand New; - TargetLoweringOpt(SelectionDAG &InDAG) : DAG(InDAG) {} + explicit TargetLoweringOpt(SelectionDAG &InDAG) : DAG(InDAG) {} bool CombineTo(SDOperand O, SDOperand N) { Old = O; diff --git a/include/llvm/Transforms/IPO/InlinerPass.h b/include/llvm/Transforms/IPO/InlinerPass.h index 01f1aff..a1e0c05 100644 --- a/include/llvm/Transforms/IPO/InlinerPass.h +++ b/include/llvm/Transforms/IPO/InlinerPass.h @@ -26,7 +26,7 @@ namespace llvm { /// perform the inlining operations that does not depend on the policy. /// struct Inliner : public CallGraphSCCPass { - Inliner(const void *ID); + explicit Inliner(const void *ID); /// getAnalysisUsage - For this class, we declare that we require and preserve /// the call graph. If the derived class implements this method, it should |