Add explicit keywords.

llvm-svn: 106300
This commit is contained in:
Dan Gohman 2010-06-18 19:04:37 +00:00
parent c1570dda5c
commit d055f6582e
2 changed files with 2 additions and 2 deletions

View 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.

View 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; }