X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=include%2Fllvm%2FUse.h;h=0a971d18ce3a31b1478a1bf41e09382a316b82b2;hb=99ec779a93cf7a09ac336b63d2d67818960343a1;hp=79bcdd177b42e254a3cfd7291140154cacc07ddc;hpb=94fb68ba217975d2d99ae86d15993402158ac655;p=oota-llvm.git diff --git a/include/llvm/Use.h b/include/llvm/Use.h index 79bcdd177b4..0a971d18ce3 100644 --- a/include/llvm/Use.h +++ b/include/llvm/Use.h @@ -17,7 +17,7 @@ #define LLVM_USE_H #include "llvm/Support/Casting.h" -#include "llvm/ADT/iterator" +#include "llvm/ADT/iterator.h" namespace llvm { @@ -66,10 +66,11 @@ inline T *transferTag(const T *From, const T *To) { // 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 /// that also works with less standard-compliant compilers void swap(Use &RHS); @@ -93,8 +94,6 @@ private: , fullStopTag = tagThree }; public: - - operator Value*() const { return Val; } Value *get() const { return Val; } User *getUser() const;