Author: nicholas Date: Sun May 15 21:46:07 2016 New Revision: 269625 URL: http://llvm.org/viewvc/llvm-project?rev=269625&view=rev Log: Make this SourceLocation getter const LLVM_READONLY like others in the same file.
Modified: cfe/trunk/include/clang/AST/StmtObjC.h Modified: cfe/trunk/include/clang/AST/StmtObjC.h URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/StmtObjC.h?rev=269625&r1=269624&r2=269625&view=diff ============================================================================== --- cfe/trunk/include/clang/AST/StmtObjC.h (original) +++ cfe/trunk/include/clang/AST/StmtObjC.h Sun May 15 21:46:07 2016 @@ -326,7 +326,7 @@ public: Expr *getThrowExpr() { return reinterpret_cast<Expr*>(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; } _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits