From fe71c546e7efff551c38da95428ccf05cd35434f Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Fri, 7 Jul 2017 19:00:06 +0000 Subject: [llvm-pdbutil] Fix build. Some platforms require an explicit specialization of std::hash for PdbRaw_FeaturesSig. Also a test involving case sensitivity needed to be fixed. For now that particular check just accepts any path even if they're completely different. Long term we should output paths in the correct case to match MSVC. llvm-svn: 307426 --- llvm/tools/llvm-pdbutil/DiffPrinter.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'llvm/tools/llvm-pdbutil/DiffPrinter.h') diff --git a/llvm/tools/llvm-pdbutil/DiffPrinter.h b/llvm/tools/llvm-pdbutil/DiffPrinter.h index 1235befa1c2..eeda92b072c 100644 --- a/llvm/tools/llvm-pdbutil/DiffPrinter.h +++ b/llvm/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 { -- cgit v1.2.3