]> granicus.if.org Git - llvm/commitdiff
[IR] Mark Use::getUser and Use::getImpliedUse as LLVM_READONLY.
authorCraig Topper <craig.topper@gmail.com>
Thu, 23 Mar 2017 05:25:25 +0000 (05:25 +0000)
committerCraig Topper <craig.topper@gmail.com>
Thu, 23 Mar 2017 05:25:25 +0000 (05:25 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@298578 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/IR/Use.h

index ff6b2e1f1e2287e6b599e6b3e26b74eb6b402414..05b68ccbb38e801087e6ead57c6015de2bcdc8eb 100644 (file)
@@ -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;