aboutsummaryrefslogtreecommitdiffstats
path: root/ELF/Arch/RISCV.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ELF/Arch/RISCV.cpp')
-rw-r--r--ELF/Arch/RISCV.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/ELF/Arch/RISCV.cpp b/ELF/Arch/RISCV.cpp
index 6f16ade57177..e7c0e36e0327 100644
--- a/ELF/Arch/RISCV.cpp
+++ b/ELF/Arch/RISCV.cpp
@@ -14,8 +14,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 {
@@ -436,7 +437,10 @@ void RISCV::relocateOne(uint8_t *loc, const RelType type,
}
}
-TargetInfo *elf::getRISCVTargetInfo() {
+TargetInfo *getRISCVTargetInfo() {
static RISCV target;
return ⌖
}
+
+} // namespace elf
+} // namespace lld