[DynInst_API:] [dyninst/dyninst] ae6899: Cleanup dyn_hash_{set, map} (#861)


Date: Tue, 22 Sep 2020 14:22:36 -0700
From: noreply@xxxxxxxxxx
Subject: [DynInst_API:] [dyninst/dyninst] ae6899: Cleanup dyn_hash_{set, map} (#861)
  Branch: refs/heads/master
  Home:   https://github.com/dyninst/dyninst
  Commit: ae68999560166c1376aeaf449ce71e5f3afaae50
      https://github.com/dyninst/dyninst/commit/ae68999560166c1376aeaf449ce71e5f3afaae50
  Author: Tim Haines <thaines.astro@xxxxxxxxx>
  Date:   2020-09-22 (Tue, 22 Sep 2020)

  Changed paths:
    M common/h/dyntypes.h
    M common/h/entryIDs.h
    M instructionAPI/h/RegisterIDs.h

  Log Message:
  -----------
  Cleanup dyn_hash_{set,map} (#861)

* Require std::unordered_{map,set} for dyn_hash_{map,set}
    This also converts the dyn_hash_* macros to alias templates for better
    type safety and error messages.
* Remove custom hashers for enums
* Use typed enums for IA32Regs, entryID, and prefixEntryID
    This ensures that the std::hash implementation that uses
    std::underlying_type will reflect the old custom hashers.


[← Prev in Thread] Current Thread [Next in Thread→]
  • [DynInst_API:] [dyninst/dyninst] ae6899: Cleanup dyn_hash_{set, map} (#861), noreply <=