]> granicus.if.org Git - llvm/commit
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)
commitd1ec4f037d61f8395714bd9588977291a69701da
tree14b6276332ac946ea261de504836d25ed1a8cd69
parent9e3e492f036cb419917e066c54b09b8254ba72d4
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).

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