[llvm] r298578 - [IR] Mark Use::getUser and Use::getImpliedUse as LLVM_READONLY.
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 22 22:25:25 PDT 2017
Author: ctopper
Date: Thu Mar 23 00:25:25 2017
New Revision: 298578
URL: http://llvm.org/viewvc/llvm-project?rev=298578&view=rev
Log:
[IR] Mark Use::getUser and Use::getImpliedUse as LLVM_READONLY.
Modified:
llvm/trunk/include/llvm/IR/Use.h
Modified: llvm/trunk/include/llvm/IR/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Use.h?rev=298578&r1=298577&r2=298578&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Use.h (original)
+++ llvm/trunk/include/llvm/IR/Use.h Thu Mar 23 00:25:25 2017
@@ -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;
More information about the llvm-commits
mailing list