aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-06-18 19:04:37 +0000
committerDan Gohman <gohman@apple.com>2010-06-18 19:04:37 +0000
commit5af58d885e5f8348505ce8d87b61fe2549d32501 (patch)
treef3d6021e5031c1266cd5b784a781c19512825677
parentc66cdf74a9f1ee12cb9bff39cbd6bc518fbc2d3e (diff)
downloadexternal_llvm-5af58d885e5f8348505ce8d87b61fe2549d32501.zip
external_llvm-5af58d885e5f8348505ce8d87b61fe2549d32501.tar.gz
external_llvm-5af58d885e5f8348505ce8d87b61fe2549d32501.tar.bz2
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@106300 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/CodeGen/MachineFrameInfo.h2
-rw-r--r--include/llvm/CodeGen/MachineJumpTableInfo.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineFrameInfo.h b/include/llvm/CodeGen/MachineFrameInfo.h
index 9c5e1b1..3e24d27 100644
--- a/include/llvm/CodeGen/MachineFrameInfo.h
+++ b/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/include/llvm/CodeGen/MachineJumpTableInfo.h b/include/llvm/CodeGen/MachineJumpTableInfo.h
index 1b6ab2c..6264349 100644
--- a/include/llvm/CodeGen/MachineJumpTableInfo.h
+++ b/include/llvm/CodeGen/MachineJumpTableInfo.h
@@ -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; }