diff --git a/tools/llvm-pdbutil/DiffPrinter.h b/tools/llvm-pdbutil/DiffPrinter.h index 1235befa1c2..eeda92b072c 100644 --- a/tools/llvm-pdbutil/DiffPrinter.h +++ b/tools/llvm-pdbutil/DiffPrinter.h @@ -13,12 +13,23 @@ #include "llvm/ADT/ArrayRef.h" #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringRef.h" +#include "llvm/DebugInfo/PDB/Native/RawConstants.h" #include "llvm/Support/FormatVariadic.h" #include "llvm/Support/raw_ostream.h" #include #include +namespace std { +template <> struct hash { + typedef llvm::pdb::PdbRaw_FeatureSig argument_type; + typedef std::size_t result_type; + result_type operator()(argument_type Item) const { + return std::hash{}(uint32_t(Item)); + } +}; +} // namespace std + namespace llvm { namespace pdb {