mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
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
This commit is contained in:
parent
ef61af01df
commit
1b9e1672fb
@ -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.
|
// Use is here to make keeping the "use" list of a Value up-to-date really easy.
|
||||||
//
|
//
|
||||||
class Use {
|
class Use {
|
||||||
public:
|
private:
|
||||||
/// init - specify Value and User
|
/// init - specify Value and User
|
||||||
/// @deprecated in 2.4, will be removed soon
|
/// @deprecated in 2.4, will be removed soon
|
||||||
inline void init(Value *V, User *U);
|
inline void init(Value *V, User *U);
|
||||||
|
public:
|
||||||
/// swap - provide a fast substitute to std::swap<Use>
|
/// swap - provide a fast substitute to std::swap<Use>
|
||||||
/// that also works with less standard-compliant compilers
|
/// that also works with less standard-compliant compilers
|
||||||
void swap(Use &RHS);
|
void swap(Use &RHS);
|
||||||
@ -93,8 +94,6 @@ private:
|
|||||||
, fullStopTag = tagThree };
|
, fullStopTag = tagThree };
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
operator Value*() const { return Val; }
|
operator Value*() const { return Val; }
|
||||||
Value *get() const { return Val; }
|
Value *get() const { return Val; }
|
||||||
User *getUser() const;
|
User *getUser() const;
|
||||||
|
Loading…
Reference in New Issue
Block a user