aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2007-08-02 21:21:54 +0000
committerDan Gohman <gohman@apple.com>2007-08-02 21:21:54 +0000
commit61e729e2e9517ab2d8887bab86fb377900fa1081 (patch)
tree3eb45a42b1bb9e4e6761dc517e08949bd4750a96 /lib/CodeGen
parent7f55fcbc6bec56662e46d35ca604553effb7a525 (diff)
downloadexternal_llvm-61e729e2e9517ab2d8887bab86fb377900fa1081.zip
external_llvm-61e729e2e9517ab2d8887bab86fb377900fa1081.tar.gz
external_llvm-61e729e2e9517ab2d8887bab86fb377900fa1081.tar.bz2
More explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40757 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r--lib/CodeGen/BranchFolding.cpp2
-rw-r--r--lib/CodeGen/VirtRegMap.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/BranchFolding.cpp b/lib/CodeGen/BranchFolding.cpp
index 0fca985..055302f 100644
--- a/lib/CodeGen/BranchFolding.cpp
+++ b/lib/CodeGen/BranchFolding.cpp
@@ -46,7 +46,7 @@ namespace {
struct BranchFolder : public MachineFunctionPass {
static char ID;
- BranchFolder(bool defaultEnableTailMerge) :
+ explicit BranchFolder(bool defaultEnableTailMerge) :
MachineFunctionPass((intptr_t)&ID) {
switch (FlagEnableTailMerge) {
case cl::BOU_UNSET: EnableTailMerge = defaultEnableTailMerge; break;
diff --git a/lib/CodeGen/VirtRegMap.h b/lib/CodeGen/VirtRegMap.h
index b7cbe51c..e5d4b22 100644
--- a/lib/CodeGen/VirtRegMap.h
+++ b/lib/CodeGen/VirtRegMap.h
@@ -75,7 +75,7 @@ namespace llvm {
void operator=(const VirtRegMap&); // DO NOT IMPLEMENT
public:
- VirtRegMap(MachineFunction &mf);
+ explicit VirtRegMap(MachineFunction &mf);
void grow();