aboutsummaryrefslogtreecommitdiffstats
path: root/ELF/Arch/MSP430.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ELF/Arch/MSP430.cpp')
-rw-r--r--ELF/Arch/MSP430.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ELF/Arch/MSP430.cpp b/ELF/Arch/MSP430.cpp
index 90664396c85e..f03e8181923b 100644
--- a/ELF/Arch/MSP430.cpp
+++ b/ELF/Arch/MSP430.cpp
@@ -26,8 +26,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 MSP430 final : public TargetInfo {
@@ -87,7 +88,10 @@ void MSP430::relocateOne(uint8_t *loc, RelType type, uint64_t val) const {
}
}
-TargetInfo *elf::getMSP430TargetInfo() {
+TargetInfo *getMSP430TargetInfo() {
static MSP430 target;
return ⌖
}
+
+} // namespace elf
+} // namespace lld