OSDN Git Service

Add explicit keywords.
authorDan Gohman <gohman@apple.com>
Fri, 18 Jun 2010 19:04:37 +0000 (19:04 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 18 Jun 2010 19:04:37 +0000 (19:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106300 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineFrameInfo.h
include/llvm/CodeGen/MachineJumpTableInfo.h

index 9c5e1b1..3e24d27 100644 (file)
@@ -36,7 +36,7 @@ class CalleeSavedInfo {
   int FrameIdx;
   
 public:
-  CalleeSavedInfo(unsigned R, int FI = 0)
+  explicit CalleeSavedInfo(unsigned R, int FI = 0)
   : Reg(R), FrameIdx(FI) {}
   
   // Accessors.
index 1b6ab2c..6264349 100644 (file)
@@ -74,7 +74,7 @@ private:
   JTEntryKind EntryKind;
   std::vector<MachineJumpTableEntry> JumpTables;
 public:
-  MachineJumpTableInfo(JTEntryKind Kind): EntryKind(Kind) {}
+  explicit MachineJumpTableInfo(JTEntryKind Kind): EntryKind(Kind) {}
     
   JTEntryKind getEntryKind() const { return EntryKind; }