diff options
| author | Dan Gohman <gohman@apple.com> | 2007-08-01 15:32:29 +0000 |
|---|---|---|
| committer | Dan Gohman <gohman@apple.com> | 2007-08-01 15:32:29 +0000 |
| commit | 34d442f27474594f2637972ad27e89ece6011704 (patch) | |
| tree | 2fccec2e14b7f09d83d58a4bac1ca50ce606763e /llvm/lib/Transforms/Scalar | |
| parent | d541c831c3d384e99a3aca0a9c3b06326f89fa1b (diff) | |
| download | bcm5719-llvm-34d442f27474594f2637972ad27e89ece6011704.tar.gz bcm5719-llvm-34d442f27474594f2637972ad27e89ece6011704.zip | |
More explicit keywords.
llvm-svn: 40673
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp | 4 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/LoopUnswitch.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp index 2969df38a69..ddc0007c00b 100644 --- a/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp +++ b/llvm/lib/Transforms/Scalar/CodeGenPrepare.cpp @@ -40,8 +40,8 @@ namespace { const TargetLowering *TLI; public: static char ID; // Pass identification, replacement for typeid - CodeGenPrepare(const TargetLowering *tli = 0) : FunctionPass((intptr_t)&ID), - TLI(tli) {} + explicit CodeGenPrepare(const TargetLowering *tli = 0) + : FunctionPass((intptr_t)&ID), TLI(tli) {} bool runOnFunction(Function &F); private: diff --git a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp index 64c60ba2e63..5bea783ff61 100644 --- a/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp +++ b/llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp @@ -145,7 +145,7 @@ namespace { public: static char ID; // Pass ID, replacement for typeid - LoopStrengthReduce(const TargetLowering *tli = NULL) : + explicit LoopStrengthReduce(const TargetLowering *tli = NULL) : LoopPass((intptr_t)&ID), TLI(tli) { } diff --git a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp index 46a91536dec..3a10bd7ae5e 100644 --- a/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp +++ b/llvm/lib/Transforms/Scalar/LoopUnswitch.cpp @@ -73,7 +73,7 @@ namespace { bool redoLoop; public: static char ID; // Pass ID, replacement for typeid - LoopUnswitch(bool Os = false) : + explicit LoopUnswitch(bool Os = false) : LoopPass((intptr_t)&ID), OptimizeForSize(Os), redoLoop(false) {} bool runOnLoop(Loop *L, LPPassManager &LPM); diff --git a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp index 45bf562f4a6..52edcb67af1 100644 --- a/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp +++ b/llvm/lib/Transforms/Scalar/ScalarReplAggregates.cpp @@ -48,7 +48,7 @@ STATISTIC(NumGlobals, "Number of allocas copied from constant global"); namespace { struct VISIBILITY_HIDDEN SROA : public FunctionPass { static char ID; // Pass identification, replacement for typeid - SROA(signed T = -1) : FunctionPass((intptr_t)&ID) { + explicit SROA(signed T = -1) : FunctionPass((intptr_t)&ID) { if (T == -1) SRThreshold = 128; else |

