diff options
author | Dan Gohman <gohman@apple.com> | 2007-03-23 18:44:11 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-03-23 18:44:11 +0000 |
commit | 423c2260f95883f7c84ac962e58ac66c3a11efac (patch) | |
tree | a1fe402ee6cad918ac07120290cef96670d64a63 /include/llvm/PassManagers.h | |
parent | b819a2b5fef660298b4f38ce951dd7f679f66b4f (diff) | |
download | external_llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.zip external_llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.gz external_llvm-423c2260f95883f7c84ac962e58ac66c3a11efac.tar.bz2 |
Add the 'explicit' keyword to several constructors that accept one
argument that don't appear intended as implicit-conversion operators.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35280 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/PassManagers.h')
-rw-r--r-- | include/llvm/PassManagers.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/PassManagers.h b/include/llvm/PassManagers.h index fd78833..c94a098 100644 --- a/include/llvm/PassManagers.h +++ b/include/llvm/PassManagers.h @@ -137,7 +137,7 @@ public: /// then return NULL. Pass *findAnalysisPass(AnalysisID AID); - PMTopLevelManager(enum TopLevelManagerType t); + explicit PMTopLevelManager(enum TopLevelManagerType t); virtual ~PMTopLevelManager(); /// Add immutable pass and initialize it. @@ -198,7 +198,7 @@ private: class PMDataManager { public: - PMDataManager(int Depth) : TPM(NULL), Depth(Depth) { + explicit PMDataManager(int Depth) : TPM(NULL), Depth(Depth) { initializeAnalysisInfo(); } @@ -321,7 +321,7 @@ private: class FPPassManager : public ModulePass, public PMDataManager { public: - FPPassManager(int Depth) : PMDataManager(Depth) { } + explicit FPPassManager(int Depth) : PMDataManager(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. |