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
This commit is contained in:
Gordon Henriksen
2007-12-09 22:46:10 +00:00
parent 46a6e79e60
commit ed455c8fa2
22 changed files with 752 additions and 228 deletions

View File

@@ -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.