From: Craig Topper Date: Thu, 23 Mar 2017 05:25:25 +0000 (+0000) Subject: [IR] Mark Use::getUser and Use::getImpliedUse as LLVM_READONLY. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a3bd80e90a19de9697c378e6fa3946e12ac3e122;p=llvm [IR] Mark Use::getUser and Use::getImpliedUse as LLVM_READONLY. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298578 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/IR/Use.h b/include/llvm/IR/Use.h index ff6b2e1f1e2..05b68ccbb38 100644 --- a/include/llvm/IR/Use.h +++ b/include/llvm/IR/Use.h @@ -85,7 +85,7 @@ public: /// /// For an instruction operand, for example, this will return the /// instruction. - User *getUser() const; + User *getUser() const LLVM_READONLY; inline void set(Value *Val); @@ -111,7 +111,7 @@ public: static void zap(Use *Start, const Use *Stop, bool del = false); private: - const Use *getImpliedUser() const; + const Use *getImpliedUser() const LLVM_READONLY; Value *Val; Use *Next;