aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Function.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-10-11 22:21:13 +0000
committerChris Lattner <sabre@nondot.org>2004-10-11 22:21:13 +0000
commitb92f50fe6091a7a12f54f9884529b1127b1a14e5 (patch)
tree020edb72423cf36bd65161999f41c9f426203482 /include/llvm/Function.h
parentc9b938065aed1d6a613daa296d0cdb9257ee6ffa (diff)
downloadexternal_llvm-b92f50fe6091a7a12f54f9884529b1127b1a14e5.zip
external_llvm-b92f50fe6091a7a12f54f9884529b1127b1a14e5.tar.gz
external_llvm-b92f50fe6091a7a12f54f9884529b1127b1a14e5.tar.bz2
Add long overdue methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@16921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r--include/llvm/Function.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/llvm/Function.h b/include/llvm/Function.h
index 9e17f26..63b5334 100644
--- a/include/llvm/Function.h
+++ b/include/llvm/Function.h
@@ -114,6 +114,17 @@ public:
setLinkage(ExternalLinkage);
}
+ /// removeFromParent - This method unlinks 'this' from the containing module,
+ /// but does not delete it.
+ ///
+ void removeFromParent();
+
+ /// eraseFromParent - This method unlinks 'this' from the containing module
+ /// and deletes it.
+ ///
+ void eraseFromParent();
+
+
// getNext/Prev - Return the next or previous function in the list. These
// methods should never be used directly, and are only used to implement the
// function list as part of the module.