[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:
Denis Protivensky 2015-01-27 07:56:25 +00:00
parent 2c63549386
commit f6966505c3
1 changed files with 8 additions and 2 deletions

View File

@ -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