[PATCH] D77963: Refactor StringMap.h, splitting StringMapEntry out to its own header.

Chris Lattner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 11 22:56:24 PDT 2020


lattner created this revision.
lattner added a reviewer: rriddle.
Herald added subscribers: llvm-commits, dexonsmith, hiraditya.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D77963

Files:
  llvm/include/llvm/ADT/StringMap.h
  llvm/include/llvm/ADT/StringMapEntry.h
  llvm/lib/Support/StringMap.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D77963.256824.patch
Type: text/x-patch
Size: 18627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200412/c60d4b98/attachment.bin>


More information about the llvm-commits mailing list