Skip to content

Commit ee25edf

Browse files
[DebugInfo] Fold a namespace into a std::hash specialization (NFC) (#165191)
This patch folds "std" into the std::hash specialization so that the template mentions std::hash. std::hash is much easier to recognize than std and hash separated by a couple of lines.
1 parent 133ac3a commit ee25edf

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/include/llvm/DebugInfo/PDB/PDBTypes.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -597,14 +597,10 @@ struct Variant {
597597
} // end namespace pdb
598598
} // end namespace llvm
599599

600-
namespace std {
601-
602-
template <> struct hash<llvm::pdb::PDB_SymType> {
600+
template <> struct std::hash<llvm::pdb::PDB_SymType> {
603601
std::size_t operator()(const llvm::pdb::PDB_SymType &Arg) const {
604602
return std::hash<int>()(static_cast<int>(Arg));
605603
}
606604
};
607605

608-
} // end namespace std
609-
610606
#endif // LLVM_DEBUGINFO_PDB_PDBTYPES_H

0 commit comments

Comments
 (0)