diff options
-rw-r--r-- | clang/include/clang/AST/Decl.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/include/clang/AST/Decl.h b/clang/include/clang/AST/Decl.h index 1dbe4c11252..f75b4756893 100644 --- a/clang/include/clang/AST/Decl.h +++ b/clang/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) { |