diff options
author | Craig Topper <craig.topper@gmail.com> | 2013-08-22 05:28:54 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2013-08-22 05:28:54 +0000 |
commit | 0b861560d9b4b0eb2b36d0f32cc7819efe9ee5f2 (patch) | |
tree | c7990bdaccb81380bc0e4411c8f44d5649b75172 /include/clang/AST/StmtObjC.h | |
parent | 9db7a7eb4e23758e041752c9c0c0ec1663d5a0af (diff) | |
download | clang-0b861560d9b4b0eb2b36d0f32cc7819efe9ee5f2.tar.gz |
Constify the ASTContext& passed to Stmt creation functions. Also constify the context in couple other functions that are called from creation functions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@188986 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/AST/StmtObjC.h')
-rw-r--r-- | include/clang/AST/StmtObjC.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/clang/AST/StmtObjC.h b/include/clang/AST/StmtObjC.h index e97c1a5a31..bfb4a9b0bb 100644 --- a/include/clang/AST/StmtObjC.h +++ b/include/clang/AST/StmtObjC.h @@ -181,13 +181,12 @@ private: HasFinally(HasFinally) { } public: - static ObjCAtTryStmt *Create(ASTContext &Context, SourceLocation atTryLoc, - Stmt *atTryStmt, + static ObjCAtTryStmt *Create(const ASTContext &Context, + SourceLocation atTryLoc, Stmt *atTryStmt, Stmt **CatchStmts, unsigned NumCatchStmts, Stmt *atFinallyStmt); - static ObjCAtTryStmt *CreateEmpty(ASTContext &Context, - unsigned NumCatchStmts, - bool HasFinally); + static ObjCAtTryStmt *CreateEmpty(const ASTContext &Context, + unsigned NumCatchStmts, bool HasFinally); /// \brief Retrieve the location of the @ in the \@try. SourceLocation getAtTryLoc() const { return AtTryLoc; } |