Refactor StringMap.h, splitting StringMapEntry out to its own header.
authorChris Lattner <clattner@nondot.org>
Sun, 12 Apr 2020 05:33:06 +0000 (22:33 -0700)
committerChris Lattner <clattner@nondot.org>
Sun, 12 Apr 2020 15:25:17 +0000 (08:25 -0700)
commit617b08ff9bef7b17957781682f78155351b0d2e9
treed55b92811ad57aed3dbe301b5c8d3460988e77d2
parentd04db4825a4d5f7fe298811a9a1644ae87748c6c
Refactor StringMap.h, splitting StringMapEntry out to its own header.

Summary:
StringMapEntry.h can have lower dependencies, than StringMap.h, which
is useful for public headers that want to expose inline methods on
StringMapEntry<> but don't need to expose all of StringMap.h.  One
example of this is mlir's Identifier.h, another example is the existing
LLVM StringPool.h.

StringPool also could use a cleanup, I'll deal with that in a follow-on
patch.

Reviewers: rriddle

Subscribers: hiraditya, dexonsmith, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D77963
llvm/include/llvm/ADT/StringMap.h
llvm/include/llvm/ADT/StringMapEntry.h [new file with mode: 0644]
llvm/lib/Support/StringMap.cpp