From 71c8c175fb2a477b90efe745aaf48ed9265300a9 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Fri, 29 Aug 2008 07:30:15 +0000 Subject: Add GlobalValue::{removeFromParent,eraseFromParent} git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@55529 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/GlobalVariable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/llvm/GlobalVariable.h') diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index aae17e409d..1f9bfd4f50 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -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. -- cgit v1.2.3