diff options
Diffstat (limited to 'ELF/Arch/AVR.cpp')
-rw-r--r-- | ELF/Arch/AVR.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/ELF/Arch/AVR.cpp b/ELF/Arch/AVR.cpp index 869f0fe0c525..cb33ff448ba4 100644 --- a/ELF/Arch/AVR.cpp +++ b/ELF/Arch/AVR.cpp @@ -36,8 +36,9 @@ using namespace llvm; using namespace llvm::object; using namespace llvm::support::endian; using namespace llvm::ELF; -using namespace lld; -using namespace lld::elf; + +namespace lld { +namespace elf { namespace { class AVR final : public TargetInfo { @@ -70,7 +71,10 @@ void AVR::relocateOne(uint8_t *loc, RelType type, uint64_t val) const { } } -TargetInfo *elf::getAVRTargetInfo() { +TargetInfo *getAVRTargetInfo() { static AVR target; return ⌖ } + +} // namespace elf +} // namespace lld |