llvm.org GIT mirror llvm / 0faf466
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307426 91177308-0d34-0410-b5e6-96231b3b80d8 Zachary Turner 3 years ago
1 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1212 #include "llvm/ADT/ArrayRef.h"
1313 #include "llvm/ADT/StringMap.h"
1414 #include "llvm/ADT/StringRef.h"
15 #include "llvm/DebugInfo/PDB/Native/RawConstants.h"
1516 #include "llvm/Support/FormatVariadic.h"
1617 #include "llvm/Support/raw_ostream.h"
1718
1819 #include
1920 #include
21
22 namespace std {
23 template <> struct hash {
24 typedef llvm::pdb::PdbRaw_FeatureSig argument_type;
25 typedef std::size_t result_type;
26 result_type operator()(argument_type Item) const {
27 return std::hash{}(uint32_t(Item));
28 }
29 };
30 } // namespace std
2031
2132 namespace llvm {
2233 namespace pdb {