diff options
author | Dan Gohman <gohman@apple.com> | 2007-11-19 15:30:20 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2007-11-19 15:30:20 +0000 |
commit | adf3eab7735741926c67e6fc12b952500c45a9ba (patch) | |
tree | b1208a03d570ac65caa07e63818e89b8a3bc2daa /lib/Bitcode | |
parent | 089617d9e3acc242151a007e7a051ed2fb200b1f (diff) | |
download | external_llvm-adf3eab7735741926c67e6fc12b952500c45a9ba.zip external_llvm-adf3eab7735741926c67e6fc12b952500c45a9ba.tar.gz external_llvm-adf3eab7735741926c67e6fc12b952500c45a9ba.tar.bz2 |
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44234 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Bitcode')
-rw-r--r-- | lib/Bitcode/Reader/BitcodeReader.cpp | 2 | ||||
-rw-r--r-- | lib/Bitcode/Writer/BitcodeWriterPass.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/Bitcode/Reader/BitcodeReader.cpp b/lib/Bitcode/Reader/BitcodeReader.cpp index 0bacf0f..aa78e7c 100644 --- a/lib/Bitcode/Reader/BitcodeReader.cpp +++ b/lib/Bitcode/Reader/BitcodeReader.cpp @@ -123,7 +123,7 @@ namespace { void operator=(const ConstantPlaceHolder &); // DO NOT IMPLEMENT public: Use Op; - ConstantPlaceHolder(const Type *Ty) + explicit ConstantPlaceHolder(const Type *Ty) : ConstantExpr(Ty, Instruction::UserOp1, &Op, 1), Op(UndefValue::get(Type::Int32Ty), this) { } diff --git a/lib/Bitcode/Writer/BitcodeWriterPass.cpp b/lib/Bitcode/Writer/BitcodeWriterPass.cpp index 8de7ffb..5751204 100644 --- a/lib/Bitcode/Writer/BitcodeWriterPass.cpp +++ b/lib/Bitcode/Writer/BitcodeWriterPass.cpp @@ -20,7 +20,8 @@ namespace { std::ostream &Out; // ostream to print on public: static char ID; // Pass identifcation, replacement for typeid - WriteBitcodePass(std::ostream &o) : ModulePass((intptr_t) &ID), Out(o) {} + explicit WriteBitcodePass(std::ostream &o) + : ModulePass((intptr_t) &ID), Out(o) {} const char *getPassName() const { return "Bitcode Writer"; } |