mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add GlobalValue::{removeFromParent,eraseFromParent}
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55529 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
130966411f
commit
71c8c175fb
@ -228,12 +228,12 @@ public:
|
||||
/// removeFromParent - This method unlinks 'this' from the containing module,
|
||||
/// but does not delete it.
|
||||
///
|
||||
void removeFromParent();
|
||||
virtual void removeFromParent();
|
||||
|
||||
/// eraseFromParent - This method unlinks 'this' from the containing module
|
||||
/// and deletes it.
|
||||
///
|
||||
void eraseFromParent();
|
||||
virtual void eraseFromParent();
|
||||
|
||||
|
||||
/// Get the underlying elements of the Function... the basic block list is
|
||||
|
@ -55,12 +55,12 @@ public:
|
||||
/// removeFromParent - This method unlinks 'this' from the containing module,
|
||||
/// but does not delete it.
|
||||
///
|
||||
void removeFromParent();
|
||||
virtual void removeFromParent();
|
||||
|
||||
/// eraseFromParent - This method unlinks 'this' from the containing module
|
||||
/// and deletes it.
|
||||
///
|
||||
void eraseFromParent();
|
||||
virtual void eraseFromParent();
|
||||
|
||||
/// set/getAliasee - These methods retrive and set alias target.
|
||||
void setAliasee(Constant* GV);
|
||||
|
@ -142,6 +142,14 @@ public:
|
||||
/// value is outside of the current translation unit...
|
||||
virtual bool isDeclaration() const = 0;
|
||||
|
||||
/// removeFromParent - This method unlinks 'this' from the containing module,
|
||||
/// but does not delete it.
|
||||
virtual void removeFromParent() = 0;
|
||||
|
||||
/// eraseFromParent - This method unlinks 'this' from the containing module
|
||||
/// and deletes it.
|
||||
virtual void eraseFromParent() = 0;
|
||||
|
||||
/// getParent - Get the module that this global value is contained inside
|
||||
/// of...
|
||||
inline Module *getParent() { return Parent; }
|
||||
|
@ -122,12 +122,12 @@ public:
|
||||
/// removeFromParent - This method unlinks 'this' from the containing module,
|
||||
/// but does not delete it.
|
||||
///
|
||||
void removeFromParent();
|
||||
virtual void removeFromParent();
|
||||
|
||||
/// eraseFromParent - This method unlinks 'this' from the containing module
|
||||
/// and deletes it.
|
||||
///
|
||||
void eraseFromParent();
|
||||
virtual void eraseFromParent();
|
||||
|
||||
/// Override Constant's implementation of this method so we can
|
||||
/// replace constant initializers.
|
||||
|
Loading…
Reference in New Issue
Block a user