aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2008-05-27 21:29:38 +0000
committerGabor Greif <ggreif@gmail.com>2008-05-27 21:29:38 +0000
commit1b9e1672fb68c399fc277a33f959be018c6796fd (patch)
treeab3d36481171d3826fb6d65030ab6f8093667d45 /include
parentef61af01df5ab39141f532e821920da2f5341406 (diff)
downloadexternal_llvm-1b9e1672fb68c399fc277a33f959be018c6796fd.zip
external_llvm-1b9e1672fb68c399fc277a33f959be018c6796fd.tar.gz
external_llvm-1b9e1672fb68c399fc277a33f959be018c6796fd.tar.bz2
Make Use::init() private, it breaks invariants, clients should assign or use set().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51615 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Use.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/llvm/Use.h b/include/llvm/Use.h
index 79bcdd1..d4152b3 100644
--- a/include/llvm/Use.h
+++ b/include/llvm/Use.h
@@ -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<Use>
/// 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;