[llvm-commits] [llvm] r51615 - /llvm/trunk/include/llvm/Use.h

Gabor Greif ggreif at gmail.com
Tue May 27 14:29:39 PDT 2008


Author: ggreif
Date: Tue May 27 16:29:38 2008
New Revision: 51615

URL: http://llvm.org/viewvc/llvm-project?rev=51615&view=rev
Log:
Make Use::init() private, it breaks invariants, clients should assign or use set().

Modified:
    llvm/trunk/include/llvm/Use.h

Modified: llvm/trunk/include/llvm/Use.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Use.h?rev=51615&r1=51614&r2=51615&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Use.h (original)
+++ llvm/trunk/include/llvm/Use.h Tue May 27 16:29:38 2008
@@ -66,10 +66,11 @@
 // Use is here to make keeping the "use" list of a Value up-to-date really easy.
 //
 class Use {
-public:
+private:
   /// init - specify Value and User
   /// @deprecated in 2.4, will be removed soon
   inline void init(Value *V, User *U);
+public:
   /// swap - provide a fast substitute to std::swap<Use>
   /// that also works with less standard-compliant compilers
   void swap(Use &RHS);
@@ -93,8 +94,6 @@
                   , fullStopTag = tagThree };
 
 public:
-
-
   operator Value*() const { return Val; }
   Value *get() const { return Val; }
   User *getUser() const;





More information about the llvm-commits mailing list