IR: Reuse `getImpl()` for `getDistinct()`, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 20:14:15 +0000 (20:14 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 19 Jan 2015 20:14:15 +0000 (20:14 +0000)
commit1b0064d0d2f47655d38d128cb1781bd998f240ba
tree5b1e73d114d6bc56f6c9bd6dec3d929a168f6275
parentf893edeaea990011df26afa0313d4dc16983e2df
IR: Reuse `getImpl()` for `getDistinct()`, NFC

Merge `getDistinct()`'s implementation with those of `get()` and
`getIfExists()` for both `MDTuple` and `MDLocation`.  This will make it
easier to scale to supporting temporaries.

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