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)
commitdf036085f0fcedf405e36622c203045e072e57fd
treeb76205ccfe5598b98201378df0810e757bdfd092
parent963bdd7c0a2d891fbeae22d9e7de47f8a027406e
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`.

llvm-svn: 224058
llvm/include/llvm/IR/LeakDetector.h