aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-07-02 14:53:37 +0000
committerDan Gohman <gohman@apple.com>2007-07-02 14:53:37 +0000
commita6900c7ad9752a27e2e3b1bd78b2af3b1381176d (patch)
tree9cf6232f239b788b5c5377242dbf2dd6fd561f18 /lib
parent0142677fe21b177a885a6843088a92cee754fce5 (diff)
downloadexternal_llvm-a6900c7ad9752a27e2e3b1bd78b2af3b1381176d.zip
external_llvm-a6900c7ad9752a27e2e3b1bd78b2af3b1381176d.tar.gz
external_llvm-a6900c7ad9752a27e2e3b1bd78b2af3b1381176d.tar.bz2
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37839 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Analysis/BasicAliasAnalysis.cpp2
-rw-r--r--lib/Analysis/CFGPrinter.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/Analysis/BasicAliasAnalysis.cpp b/lib/Analysis/BasicAliasAnalysis.cpp
index 762fef1..b6072fd 100644
--- a/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/lib/Analysis/BasicAliasAnalysis.cpp
@@ -38,7 +38,7 @@ namespace {
struct VISIBILITY_HIDDEN NoAA : public ImmutablePass, public AliasAnalysis {
static char ID; // Class identification, replacement for typeinfo
NoAA() : ImmutablePass((intptr_t)&ID) {}
- NoAA(intptr_t PID) : ImmutablePass(PID) { }
+ explicit NoAA(intptr_t PID) : ImmutablePass(PID) { }
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<TargetData>();
diff --git a/lib/Analysis/CFGPrinter.cpp b/lib/Analysis/CFGPrinter.cpp
index 7466666..d32481e 100644
--- a/lib/Analysis/CFGPrinter.cpp
+++ b/lib/Analysis/CFGPrinter.cpp
@@ -135,7 +135,7 @@ namespace {
struct VISIBILITY_HIDDEN CFGPrinter : public FunctionPass {
static char ID; // Pass identification, replacement for typeid
CFGPrinter() : FunctionPass((intptr_t)&ID) {}
- CFGPrinter(intptr_t pid) : FunctionPass(pid) {}
+ explicit CFGPrinter(intptr_t pid) : FunctionPass(pid) {}
virtual bool runOnFunction(Function &F) {
std::string Filename = "cfg." + F.getName() + ".dot";