Add explicit keywords.
authorDan Gohman <gohman@apple.com>
Thu, 5 Jul 2007 20:40:15 +0000 (20:40 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 5 Jul 2007 20:40:15 +0000 (20:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37925 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/IntrinsicLowering.h
include/llvm/CodeGen/MachineModuleInfo.h
include/llvm/CodeGen/RegisterScavenging.h
include/llvm/Support/CommandLine.h

index 098d59c1c1df40a3eab791bc7c9f4493d53233b1..bff1b396cd0d63aef33184ca7454259eca8ca209 100644 (file)
@@ -26,7 +26,7 @@ namespace llvm {
   class IntrinsicLowering {
     const TargetData& TD;
   public:
-    IntrinsicLowering(const TargetData &td) : TD(td) {}
+    explicit IntrinsicLowering(const TargetData &td) : TD(td) {}
 
     /// AddPrototypes - This method, if called, causes all of the prototypes
     /// that might be needed by an intrinsic lowering implementation to be
index 457d33d1f26b2ea7be242b336eb893d577c6a250..1f9decf574c22900db0478a9008d68f6684f7289 100644 (file)
@@ -97,7 +97,7 @@ private:
                                         // Dwarf writers.
   
 protected:
-  DebugInfoDesc(unsigned T) : Tag(T | LLVMDebugVersion) {}
+  explicit DebugInfoDesc(unsigned T) : Tag(T | LLVMDebugVersion) {}
   
 public:
   virtual ~DebugInfoDesc() {}
index 01db6a231ed9a07c996b45b09d26eb6e20cf7a67..ec23e760fa2c6a7ceb62486cdf6893c6e7f7fcd5 100644 (file)
@@ -57,7 +57,7 @@ public:
     : MBB(NULL), NumPhysRegs(0), Tracking(false),
       ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {};
 
-  RegScavenger(MachineBasicBlock *mbb)
+  explicit RegScavenger(MachineBasicBlock *mbb)
     : MBB(mbb), NumPhysRegs(0), Tracking(false),
       ScavengingFrameIndex(-1), ScavengedReg(0), ScavengedRC(NULL) {};
 
index 08aca8160ac0f7947ffdc817d9d6f18a8fc96a1a..23b7cf380e7c33f6c07e14a3bd652bf25b79499d 100644 (file)
@@ -202,7 +202,7 @@ public:
   void setMiscFlag(enum MiscFlags M) { setFlag(M, M); }
   void setPosition(unsigned pos) { Position = pos; }
 protected:
-  Option(unsigned DefaultFlags)
+  explicit Option(unsigned DefaultFlags)
     : NumOccurrences(0), Flags(DefaultFlags | NormalFormatting), Position(0),
       NextRegistered(0), ArgStr(""), HelpStr(""), ValueStr("") {
     assert(getNumOccurrencesFlag() != 0 &&