]> granicus.if.org Git - llvm/commit
[ADT] Reduce duplication between {Contextual,}FoldingSet; NFC
authorGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 12 Jun 2017 20:52:53 +0000 (20:52 +0000)
committerGeorge Burgess IV <george.burgess.iv@gmail.com>
Mon, 12 Jun 2017 20:52:53 +0000 (20:52 +0000)
commit4d6bb2d89061da20e809f11c841a9ebcc25ae094
treee62723be45ffca912628e0fbc47c391bd6dccfda
parent4f4997576fa9f9c72b4f8272723d6d9573370622
[ADT] Reduce duplication between {Contextual,}FoldingSet; NFC

This is a precursor to another change (coming soon) that aims to make
FoldingSet's API more type-safe. Without this, the type-safety change
would just duplicate 4 more public methods between the already very
similar classes.

This renames FoldingSetImpl to FoldingSetBase so it's consistent with
the FooBase -> FooImpl<T> -> Foo<T> convention we seem to have with
other containers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305231 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/FoldingSet.h
lib/Support/FoldingSet.cpp