LeakDetector: Simplify code and fix comments, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 11 Dec 2014 21:23:43 +0000 (21:23 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 11 Dec 2014 21:23:43 +0000 (21:23 +0000)
commit966942da9e68b59c31ce770e7f94c55a63482c6b
tree2959506dee78911f576201904b6df9fad057367a
parent054eb6cba689feca3c5883c6e0548d4b76b9845d
LeakDetector: Simplify code and fix comments, NFC

Rather than requiring overloads in the wrapper and the impl, just
overload the impl and use templates in the wrapper.  This makes it less
error prone to add more overloads (`void *` defeats any chance the
compiler has at noticing bugs, so the easier the better).

At the same time, correct the comment that was lying about not changing
functionality for `Value`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@224058 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/LeakDetector.h