summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Bitcode
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-11-19 15:30:20 +0000
committerDan Gohman <gohman@apple.com>2007-11-19 15:30:20 +0000
commitd32081002e0412658e61936732f0f2ab456e61e9 (patch)
tree101501c67de7b0d348113fd52eb6cb5e0ae258e2 /llvm/lib/Bitcode
parent36347a26f90d0db69a65230f1dc3497498393ca6 (diff)
downloadbcm5719-llvm-d32081002e0412658e61936732f0f2ab456e61e9.tar.gz
bcm5719-llvm-d32081002e0412658e61936732f0f2ab456e61e9.zip
Add explicit keywords.
llvm-svn: 44234
Diffstat (limited to 'llvm/lib/Bitcode')
-rw-r--r--llvm/lib/Bitcode/Reader/BitcodeReader.cpp2
-rw-r--r--llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp3
2 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp b/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
index 0bacf0fe70e..aa78e7c4dc0 100644
--- a/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
+++ b/llvm/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/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp b/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
index 8de7ffb2db2..57512045e03 100644
--- a/llvm/lib/Bitcode/Writer/BitcodeWriterPass.cpp
+++ b/llvm/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"; }
OpenPOWER on IntegriCloud