OSDN Git Service

IR: Move call to dropAllReferences() to MDNode subclasses
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 10 Dec 2014 01:45:04 +0000 (01:45 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 10 Dec 2014 01:45:04 +0000 (01:45 +0000)
commit0e6679635a5dbc3d925369e690606e226aef8e86
treefbeceb48e899cea6d184f1cc9176b11d0cdd9a3f
parentbf13927f3b62e4e3951670775a28fd2fa154d911
IR: Move call to dropAllReferences() to MDNode subclasses

Don't call `dropAllReferences()` from `MDNode::~MDNode()`, call it
directly from `~MDNodeFwdDecl()` and `~GenericMDNode()`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223904 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Metadata.h
lib/IR/Metadata.cpp