diff options
author | Dan Gohman <djg@cray.com> | 2007-12-14 15:41:34 +0000 |
---|---|---|
committer | Dan Gohman <djg@cray.com> | 2007-12-14 15:41:34 +0000 |
commit | c43c7f4dc736f7a5811b5dc0d7bc654703d40349 (patch) | |
tree | c7889a60dd3e88fd586f792cf4ae9474fb705576 /include | |
parent | 73e6a0a678db840955845a61059e17059b4c4dd7 (diff) | |
download | external_llvm-c43c7f4dc736f7a5811b5dc0d7bc654703d40349.zip external_llvm-c43c7f4dc736f7a5811b5dc0d7bc654703d40349.tar.gz external_llvm-c43c7f4dc736f7a5811b5dc0d7bc654703d40349.tar.bz2 |
Add explicit keywords, and fix a minor typo that they uncovered.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45034 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/ADT/StringMap.h | 4 | ||||
-rw-r--r-- | include/llvm/ExecutionEngine/ExecutionEngine.h | 2 | ||||
-rw-r--r-- | include/llvm/ExecutionEngine/GenericValue.h | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h index 1fa128a..7454288 100644 --- a/include/llvm/ADT/StringMap.h +++ b/include/llvm/ADT/StringMap.h @@ -389,8 +389,8 @@ private: template<typename ValueTy> class StringMapIterator : public StringMapConstIterator<ValueTy> { public: - StringMapIterator(StringMapImpl::ItemBucket *Bucket, - bool NoAdvance = false) + explicit StringMapIterator(StringMapImpl::ItemBucket *Bucket, + bool NoAdvance = false) : StringMapConstIterator<ValueTy>(Bucket, NoAdvance) { } StringMapEntry<ValueTy> &operator*() const { diff --git a/include/llvm/ExecutionEngine/ExecutionEngine.h b/include/llvm/ExecutionEngine/ExecutionEngine.h index 5b33e15..cc0ab0b 100644 --- a/include/llvm/ExecutionEngine/ExecutionEngine.h +++ b/include/llvm/ExecutionEngine/ExecutionEngine.h @@ -248,7 +248,7 @@ public: } protected: - ExecutionEngine(ModuleProvider *P); + explicit ExecutionEngine(ModuleProvider *P); void emitGlobals(); diff --git a/include/llvm/ExecutionEngine/GenericValue.h b/include/llvm/ExecutionEngine/GenericValue.h index fab82af..0371009 100644 --- a/include/llvm/ExecutionEngine/GenericValue.h +++ b/include/llvm/ExecutionEngine/GenericValue.h @@ -34,7 +34,7 @@ struct GenericValue { APInt IntVal; // also used for long doubles GenericValue() : DoubleVal(0.0), IntVal(1,0) {} - GenericValue(void *V) : PointerVal(V), IntVal(1,0) { } + explicit GenericValue(void *V) : PointerVal(V), IntVal(1,0) { } }; inline GenericValue PTOGV(void *P) { return GenericValue(P); } |