aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/MC/MCExpr.h
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-02-09 00:29:29 +0000
committerDan Gohman <gohman@apple.com>2010-02-09 00:29:29 +0000
commit159f527cb269002de85e671023b9231a2c8792e9 (patch)
tree4da4a17686dd5e971baa9fca67d1943dbebe85c3 /include/llvm/MC/MCExpr.h
parentcf031f6d66104a9b00839359c0ad1f57d05a8a63 (diff)
downloadexternal_llvm-159f527cb269002de85e671023b9231a2c8792e9.zip
external_llvm-159f527cb269002de85e671023b9231a2c8792e9.tar.gz
external_llvm-159f527cb269002de85e671023b9231a2c8792e9.tar.bz2
Add explicit keywords.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95626 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/MC/MCExpr.h')
-rw-r--r--include/llvm/MC/MCExpr.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/MC/MCExpr.h b/include/llvm/MC/MCExpr.h
index afc90d9..48a13f6 100644
--- a/include/llvm/MC/MCExpr.h
+++ b/include/llvm/MC/MCExpr.h
@@ -40,7 +40,7 @@ private:
void operator=(const MCExpr&); // DO NOT IMPLEMENT
protected:
- MCExpr(ExprKind _Kind) : Kind(_Kind) {}
+ explicit MCExpr(ExprKind _Kind) : Kind(_Kind) {}
public:
/// @name Accessors
@@ -86,7 +86,7 @@ inline raw_ostream &operator<<(raw_ostream &OS, const MCExpr &E) {
class MCConstantExpr : public MCExpr {
int64_t Value;
- MCConstantExpr(int64_t _Value)
+ explicit MCConstantExpr(int64_t _Value)
: MCExpr(MCExpr::Constant), Value(_Value) {}
public:
@@ -118,7 +118,7 @@ public:
class MCSymbolRefExpr : public MCExpr {
const MCSymbol *Symbol;
- MCSymbolRefExpr(const MCSymbol *_Symbol)
+ explicit MCSymbolRefExpr(const MCSymbol *_Symbol)
: MCExpr(MCExpr::SymbolRef), Symbol(_Symbol) {}
public: