From: Chris Lattner Date: Wed, 29 Aug 2007 17:23:37 +0000 (+0000) Subject: add some accessors X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=293c0baa7db9a338c7478a04457dc6801af5d308;p=clang add some accessors git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41570 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/Decl.h b/include/clang/AST/Decl.h index 1dbe4c1125..f75b475689 100644 --- a/include/clang/AST/Decl.h +++ b/include/clang/AST/Decl.h @@ -330,6 +330,9 @@ public: const Expr *getInitExpr() const { return Init; } Expr *getInitExpr() { return Init; } const llvm::APSInt &getInitVal() const { return Val; } + + void setInitExpr(Expr *E) { Init = E; } + void setInitVal(llvm::APSInt &V) { Val = V; } // Implement isa/cast/dyncast/etc. static bool classof(const Decl *D) {