[llvm-commits] [llvm] r106300 - in /llvm/trunk/include/llvm/CodeGen: MachineFrameInfo.h MachineJumpTableInfo.h

Dan Gohman gohman at apple.com
Fri Jun 18 12:04:38 PDT 2010


Author: djg
Date: Fri Jun 18 14:04:37 2010
New Revision: 106300

URL: http://llvm.org/viewvc/llvm-project?rev=106300&view=rev
Log:
Add explicit keywords.

Modified:
    llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h
    llvm/trunk/include/llvm/CodeGen/MachineJumpTableInfo.h

Modified: llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h?rev=106300&r1=106299&r2=106300&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineFrameInfo.h Fri Jun 18 14:04:37 2010
@@ -36,7 +36,7 @@
   int FrameIdx;
   
 public:
-  CalleeSavedInfo(unsigned R, int FI = 0)
+  explicit CalleeSavedInfo(unsigned R, int FI = 0)
   : Reg(R), FrameIdx(FI) {}
   
   // Accessors.

Modified: llvm/trunk/include/llvm/CodeGen/MachineJumpTableInfo.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/CodeGen/MachineJumpTableInfo.h?rev=106300&r1=106299&r2=106300&view=diff
==============================================================================
--- llvm/trunk/include/llvm/CodeGen/MachineJumpTableInfo.h (original)
+++ llvm/trunk/include/llvm/CodeGen/MachineJumpTableInfo.h Fri Jun 18 14:04:37 2010
@@ -74,7 +74,7 @@
   JTEntryKind EntryKind;
   std::vector<MachineJumpTableEntry> JumpTables;
 public:
-  MachineJumpTableInfo(JTEntryKind Kind): EntryKind(Kind) {}
+  explicit MachineJumpTableInfo(JTEntryKind Kind): EntryKind(Kind) {}
     
   JTEntryKind getEntryKind() const { return EntryKind; }
 





More information about the llvm-commits mailing list