diff --git a/lld/wasm/SyntheticSections.h b/lld/wasm/SyntheticSections.h index 8eebe916780c69..12517b65c16351 100644 --- a/lld/wasm/SyntheticSections.h +++ b/lld/wasm/SyntheticSections.h @@ -131,7 +131,8 @@ inline bool operator==(const ImportKey &lhs, const ImportKey &rhs) { // `ImportKey` can be used as a key in a `DenseMap` if `T` can be used as a // key in a `DenseMap`. -template struct llvm::DenseMapInfo> { +namespace llvm { +template struct DenseMapInfo> { static lld::wasm::ImportKey getEmptyKey() { typename lld::wasm::ImportKey key(llvm::DenseMapInfo::getEmptyKey()); key.state = lld::wasm::ImportKey::State::Empty; @@ -154,6 +155,7 @@ template struct llvm::DenseMapInfo> { return lhs == rhs; } }; +} // end namespace llvm namespace lld { namespace wasm {