IR: Stop erasing MDNodes from uniquing sets during teardown
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 20:50:25 +0000 (20:50 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 12 Jan 2015 20:50:25 +0000 (20:50 +0000)
commit6b1f4659f98d3471dd8e821b5e60ca9abdb78421
tree298f175d833994234b5b48ca5a9cd36531331609
parenta2dece27e4c9e82f87f7abec5ce805632e12863c
IR: Stop erasing MDNodes from uniquing sets during teardown

Stop erasing `MDNode`s from the uniquing sets in `LLVMContextImpl`
during teardown (in particular, during
`UniquableMDNode::~UniquableMDNode()`).  Although it's currently
feasible, there isn't any clear benefit and it may not be feasible for
other subclasses (which don't explicitly store the lookup hash).

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