diff options
author | Denis Protivensky <dprotivensky@accesssoftek.com> | 2015-01-27 07:56:25 +0000 |
---|---|---|
committer | Denis Protivensky <dprotivensky@accesssoftek.com> | 2015-01-27 07:56:25 +0000 |
commit | f6966505c333aa0d6e8e7088b551d1b5e800f542 (patch) | |
tree | b70349d5f8b984f825514e83d9e260ff2db2e395 | |
parent | 2c63549386132e0d23b1cb00b40e198584f94352 (diff) | |
download | bcm5719-llvm-f6966505c333aa0d6e8e7088b551d1b5e800f542.tar.gz bcm5719-llvm-f6966505c333aa0d6e8e7088b551d1b5e800f542.zip |
[Mips] Fix createMipsRelocationHandler specialization
gcc allows template specializations only in the same namespace
where template has been declared.
llvm-svn: 227177
-rw-r--r-- | lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp index 5765ce1f062..c3907d6e55d 100644 --- a/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp +++ b/lld/lib/ReaderWriter/ELF/Mips/MipsRelocationHandler.cpp @@ -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 |