From d055f6582e45b5c0b38e0afc91ce16975a6d633c Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 18 Jun 2010 19:04:37 +0000 Subject: [PATCH] Add explicit keywords. llvm-svn: 106300 --- llvm/include/llvm/CodeGen/MachineFrameInfo.h | 2 +- llvm/include/llvm/CodeGen/MachineJumpTableInfo.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/llvm/include/llvm/CodeGen/MachineFrameInfo.h b/llvm/include/llvm/CodeGen/MachineFrameInfo.h index 9c5e1b1eac52..3e24d2722c0e 100644 --- a/llvm/include/llvm/CodeGen/MachineFrameInfo.h +++ b/llvm/include/llvm/CodeGen/MachineFrameInfo.h @@ -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. diff --git a/llvm/include/llvm/CodeGen/MachineJumpTableInfo.h b/llvm/include/llvm/CodeGen/MachineJumpTableInfo.h index 1b6ab2cd4cbc..62643497655a 100644 --- a/llvm/include/llvm/CodeGen/MachineJumpTableInfo.h +++ b/llvm/include/llvm/CodeGen/MachineJumpTableInfo.h @@ -74,7 +74,7 @@ private: JTEntryKind EntryKind; std::vector JumpTables; public: - MachineJumpTableInfo(JTEntryKind Kind): EntryKind(Kind) {} + explicit MachineJumpTableInfo(JTEntryKind Kind): EntryKind(Kind) {} JTEntryKind getEntryKind() const { return EntryKind; }