diff --git a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp index 711c72ba5b39b..9b791a1618e99 100644 --- a/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp +++ b/llvm/lib/Target/PowerPC/PPCAsmPrinter.cpp @@ -82,8 +82,9 @@ using namespace llvm::XCOFF; // std::pair in DenseMap. // This specialization is needed here because that type is used as keys in the // map representing TOC entries. +namespace llvm { template <> -struct llvm::DenseMapInfo> { +struct DenseMapInfo> { using TOCKey = std::pair; static inline TOCKey getEmptyKey() { @@ -99,6 +100,7 @@ struct llvm::DenseMapInfo