diff options
| author | Dan Gohman <gohman@apple.com> | 2009-02-18 16:37:45 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2009-02-18 16:37:45 +0000 |
| commit | 8cab4c44bbf24f73a34e1bc5b42c42180fb54f5e (patch) | |
| tree | 5040de25683882a422cf98470ee8286114a56243 /llvm/lib | |
| parent | 18d85e7403292bb548a30cf28b14773df5ce6c71 (diff) | |
| download | bcm5719-llvm-8cab4c44bbf24f73a34e1bc5b42c42180fb54f5e.tar.gz bcm5719-llvm-8cab4c44bbf24f73a34e1bc5b42c42180fb54f5e.zip | |
Add explicit keywords.
llvm-svn: 64915
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Target/Sparc/FPMover.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/IPO/ArgumentPromotion.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Target/Sparc/FPMover.cpp b/llvm/lib/Target/Sparc/FPMover.cpp index 5faf2a1a763..f72a4c4645c 100644 --- a/llvm/lib/Target/Sparc/FPMover.cpp +++ b/llvm/lib/Target/Sparc/FPMover.cpp @@ -33,7 +33,7 @@ namespace { TargetMachine &TM; static char ID; - FPMover(TargetMachine &tm) + explicit FPMover(TargetMachine &tm) : MachineFunctionPass(&ID), TM(tm) { } virtual const char *getPassName() const { diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp index 183e1a1e0a4..b562c425aa6 100644 --- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp +++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp @@ -66,8 +66,8 @@ namespace { virtual bool runOnSCC(const std::vector<CallGraphNode *> &SCC); static char ID; // Pass identification, replacement for typeid - ArgPromotion(unsigned maxElements = 3) : CallGraphSCCPass(&ID), - maxElements(maxElements) {} + explicit ArgPromotion(unsigned maxElements = 3) + : CallGraphSCCPass(&ID), maxElements(maxElements) {} /// A vector used to hold the indices of a single GEP instruction typedef std::vector<uint64_t> IndicesVector; |

