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)
commitf14b1df55b64aa66ec799b948ef99c1558a4c4c8
tree81352ef2c591cd0847b22e579233573f495427a3
parent2dc1b0f51487e7f16c013074b618c2040f01f898
IR: Move call to dropAllReferences() to MDNode subclasses

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

llvm-svn: 223904
llvm/include/llvm/IR/Metadata.h
llvm/lib/IR/Metadata.cpp