forked from OSchip/llvm-project
[Mips] Fix createMipsRelocationHandler specialization
gcc allows template specializations only in the same namespace where template has been declared. llvm-svn: 227177
This commit is contained in:
parent
2c63549386
commit
f6966505c3
|
@ -373,16 +373,22 @@ std::error_code RelocationHandler<ELFT>::applyRelocation(
|
|||
|
||||
} // end anon namespace
|
||||
|
||||
namespace lld {
|
||||
namespace elf {
|
||||
|
||||
template <>
|
||||
std::unique_ptr<TargetRelocationHandler>
|
||||
lld::elf::createMipsRelocationHandler<Mips32ELType>(MipsLinkingContext &ctx) {
|
||||
createMipsRelocationHandler<Mips32ELType>(MipsLinkingContext &ctx) {
|
||||
return std::unique_ptr<TargetRelocationHandler>(
|
||||
new RelocationHandler<Mips32ELType>(ctx));
|
||||
}
|
||||
|
||||
template <>
|
||||
std::unique_ptr<TargetRelocationHandler>
|
||||
lld::elf::createMipsRelocationHandler<Mips64ELType>(MipsLinkingContext &ctx) {
|
||||
createMipsRelocationHandler<Mips64ELType>(MipsLinkingContext &ctx) {
|
||||
return std::unique_ptr<TargetRelocationHandler>(
|
||||
new RelocationHandler<Mips64ELType>(ctx));
|
||||
}
|
||||
|
||||
} // elf
|
||||
} // lld
|
||||
|
|
Loading…
Reference in New Issue