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)
commit518025f8a197ed5249badf32fb721389af0b59e4
tree14d4f3bebb616cdb5861d6a60905f8eaf442a10f
parent00a658dcdc560e793939fdc08d34a52f7ee26d79
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.

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