IR: Extract out and reuse storeImpl(), NFC

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@226499 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Duncan P. N. Exon Smith
2015-01-19 20:18:13 +00:00
parent 1c588db19b
commit e5afc6570f
2 changed files with 22 additions and 28 deletions

View File

@@ -820,6 +820,8 @@ protected:
~UniquableMDNode() {}
void storeDistinctInContext();
template <class T, class StoreT>
static T *storeImpl(T *N, StorageType Storage, StoreT &Store);
public:
static bool classof(const Metadata *MD) {