summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-03-15 23:04:32 +0000
committerChris Lattner <sabre@nondot.org>2008-03-15 23:04:32 +0000
commitd3f989ccd302d53e327c030347313fbd8d23a344 (patch)
tree3077645de3251a1f4ae27887eb3bcf55e1ee4559
parent056fb6be98364aa17776f92fcd5fad0f2b2ff099 (diff)
downloadbcm5719-llvm-d3f989ccd302d53e327c030347313fbd8d23a344.tar.gz
bcm5719-llvm-d3f989ccd302d53e327c030347313fbd8d23a344.zip
Make a ctor protected
llvm-svn: 48401
-rw-r--r--clang/include/clang/AST/Decl.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h
index b53d5d3bcb0..7c3560c5035 100644
--- a/clang/include/clang/AST/Decl.h
+++ b/clang/include/clang/AST/Decl.h
@@ -514,13 +514,14 @@ protected:
class FieldDecl : public NamedDecl {
QualType DeclType;
Expr *BitWidth;
+protected:
+ FieldDecl(Kind DK, SourceLocation L, IdentifierInfo *Id, QualType T,
+ Expr *BW = NULL)
+ : NamedDecl(DK, L, Id), DeclType(T), BitWidth(BW) {}
public:
FieldDecl(SourceLocation L, IdentifierInfo *Id, QualType T,
Expr *BW = NULL)
: NamedDecl(Field, L, Id), DeclType(T), BitWidth(BW) {}
- FieldDecl(Kind DK, SourceLocation L, IdentifierInfo *Id, QualType T,
- Expr *BW = NULL)
- : NamedDecl(DK, L, Id), DeclType(T), BitWidth(BW) {}
QualType getType() const { return DeclType; }
QualType getCanonicalType() const { return DeclType.getCanonicalType(); }
OpenPOWER on IntegriCloud