[all-commits] [llvm/llvm-project] c7f950: [DenseMapInfo] Move hash_code implementation to Ha...

Nikita Popov via All-commits all-commits at lists.llvm.org
Fri Oct 8 12:44:46 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c7f9505a8a0357a65ee8bee9e2ec2cbfe845c7f9
      https://github.com/llvm/llvm-project/commit/c7f9505a8a0357a65ee8bee9e2ec2cbfe845c7f9
  Author: Nikita Popov <nikita.ppv at gmail.com>
  Date:   2021-10-08 (Fri, 08 Oct 2021)

  Changed paths:
    M llvm/include/llvm/ADT/DenseMapInfo.h
    M llvm/include/llvm/ADT/Hashing.h

  Log Message:
  -----------
  [DenseMapInfo] Move hash_code implementation to Hashing.h (NFC)

This moves the DenseMapInfo implementation for hash_code into
Hashing.h, removing the need to include Hashing.h (and thus <string>)
in DenseMapInfo.h. This follows the general convention of declaring
DenseMapInfo for types that we own in the respective header. The
remaining implementations in DenseMapInfo.h are all for types we
do not own.

Differential Revision: https://reviews.llvm.org/D111451




More information about the All-commits mailing list