aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-07-07 18:00:37 +0000
committerDan Gohman <gohman@apple.com>2008-07-07 18:00:37 +0000
commite887fdff72486ad0e83f402c8c105fa91fff1036 (patch)
tree73e3b798b99c400100672ea206ea1db8eb84af5a /utils
parent775977b3450a99de8bcb039de2dcc55d614ac176 (diff)
downloadexternal_llvm-e887fdff72486ad0e83f402c8c105fa91fff1036.zip
external_llvm-e887fdff72486ad0e83f402c8c105fa91fff1036.tar.gz
external_llvm-e887fdff72486ad0e83f402c8c105fa91fff1036.tar.bz2
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/Record.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/TableGen/Record.h b/utils/TableGen/Record.h
index 83d358a..c36d808 100644
--- a/utils/TableGen/Record.h
+++ b/utils/TableGen/Record.h
@@ -151,7 +151,7 @@ public:
class BitsRecTy : public RecTy {
unsigned Size;
public:
- BitsRecTy(unsigned Sz) : Size(Sz) {}
+ explicit BitsRecTy(unsigned Sz) : Size(Sz) {}
unsigned getNumBits() const { return Size; }
@@ -268,7 +268,7 @@ public:
class ListRecTy : public RecTy {
RecTy *Ty;
public:
- ListRecTy(RecTy *T) : Ty(T) {}
+ explicit ListRecTy(RecTy *T) : Ty(T) {}
RecTy *getElementType() const { return Ty; }
@@ -381,7 +381,7 @@ public:
class RecordRecTy : public RecTy {
Record *Rec;
public:
- RecordRecTy(Record *R) : Rec(R) {}
+ explicit RecordRecTy(Record *R) : Rec(R) {}
Record *getRecord() const { return Rec; }
@@ -966,7 +966,7 @@ class Record {
std::vector<Record*> SuperClasses;
public:
- Record(const std::string &N) : Name(N) {}
+ explicit Record(const std::string &N) : Name(N) {}
~Record() {}
const std::string &getName() const { return Name; }