From: Nick Lewycky Date: Mon, 16 May 2016 02:46:07 +0000 (+0000) Subject: Make this SourceLocation getter const LLVM_READONLY like others in the same file. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=eee1dcb97f754113cb828585094e2b13f7362c40;p=clang Make this SourceLocation getter const LLVM_READONLY like others in the same file. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@269625 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/StmtObjC.h b/include/clang/AST/StmtObjC.h index 68fe3ef697..5260b6985b 100644 --- a/include/clang/AST/StmtObjC.h +++ b/include/clang/AST/StmtObjC.h @@ -326,7 +326,7 @@ public: Expr *getThrowExpr() { return reinterpret_cast(Throw); } void setThrowExpr(Stmt *S) { Throw = S; } - SourceLocation getThrowLoc() { return AtThrowLoc; } + SourceLocation getThrowLoc() const LLVM_READONLY { return AtThrowLoc; } void setThrowLoc(SourceLocation Loc) { AtThrowLoc = Loc; } SourceLocation getLocStart() const LLVM_READONLY { return AtThrowLoc; }