diff options
Diffstat (limited to 'include/llvm/Function.h')
-rw-r--r-- | include/llvm/Function.h | 11 |
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. |