[llvm-commits] [llvm] r95626 - /llvm/trunk/include/llvm/MC/MCExpr.h
Dan Gohman
gohman at apple.com
Mon Feb 8 16:29:29 PST 2010
Author: djg
Date: Mon Feb 8 18:29:29 2010
New Revision: 95626
URL: http://llvm.org/viewvc/llvm-project?rev=95626&view=rev
Log:
Add explicit keywords.
Modified:
llvm/trunk/include/llvm/MC/MCExpr.h
Modified: llvm/trunk/include/llvm/MC/MCExpr.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/MC/MCExpr.h?rev=95626&r1=95625&r2=95626&view=diff
==============================================================================
--- llvm/trunk/include/llvm/MC/MCExpr.h (original)
+++ llvm/trunk/include/llvm/MC/MCExpr.h Mon Feb 8 18:29:29 2010
@@ -40,7 +40,7 @@
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 @@
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 @@
class MCSymbolRefExpr : public MCExpr {
const MCSymbol *Symbol;
- MCSymbolRefExpr(const MCSymbol *_Symbol)
+ explicit MCSymbolRefExpr(const MCSymbol *_Symbol)
: MCExpr(MCExpr::SymbolRef), Symbol(_Symbol) {}
public:
More information about the llvm-commits
mailing list