diff --git a/lld/wasm/SyntheticSections.h b/lld/wasm/SyntheticSections.h --- a/lld/wasm/SyntheticSections.h +++ b/lld/wasm/SyntheticSections.h @@ -131,7 +131,8 @@ // `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 @@ return lhs == rhs; } }; +} // end namespace llvm namespace lld { namespace wasm {