[cfe-commits] r41570 - /cfe/trunk/include/clang/AST/Decl.h
Chris Lattner
sabre at nondot.org
Wed Aug 29 10:23:38 PDT 2007
Author: lattner
Date: Wed Aug 29 12:23:37 2007
New Revision: 41570
URL: http://llvm.org/viewvc/llvm-project?rev=41570&view=rev
Log:
add some accessors
Modified:
cfe/trunk/include/clang/AST/Decl.h
Modified: cfe/trunk/include/clang/AST/Decl.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/Decl.h?rev=41570&r1=41569&r2=41570&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/Decl.h (original)
+++ cfe/trunk/include/clang/AST/Decl.h Wed Aug 29 12:23:37 2007
@@ -330,6 +330,9 @@
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) {
More information about the cfe-commits
mailing list