Add explicit keywords.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106300 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-06-18 19:04:37 +00:00
parent c66cdf74a9
commit 5af58d885e
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; }