aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/GlobalAlias.h
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-12-09 22:46:10 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-12-09 22:46:10 +0000
commited455c8fa25dd37a13b33f0afa66be03ac49b5bb (patch)
tree7bfa961474e22f830710a49d4ed015fe374967b7 /include/llvm/GlobalAlias.h
parent46a6e79e602b23ea3478027d5bdd1f904aea7924 (diff)
downloadexternal_llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.zip
external_llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.tar.gz
external_llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.tar.bz2
Devirtualizing Value destructor (PR889). Patch by Pawel Kunio!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalAlias.h')
-rw-r--r--include/llvm/GlobalAlias.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/GlobalAlias.h b/include/llvm/GlobalAlias.h
index bbd19ba..8b0dcf5 100644
--- a/include/llvm/GlobalAlias.h
+++ b/include/llvm/GlobalAlias.h
@@ -43,6 +43,11 @@ class GlobalAlias : public GlobalValue {
const GlobalAlias *getPrev() const { return Prev; }
Use Aliasee;
+protected:
+ static void destroyThis(GlobalAlias*v) {
+ GlobalValue::destroyThis(v);
+ }
+ friend class Value;
public:
/// GlobalAlias ctor - If a parent module is specified, the alias is
/// automatically inserted into the end of the specified module's alias list.