diff --git a/llvm/tools/yaml2obj/yaml2elf.cpp b/llvm/tools/yaml2obj/yaml2elf.cpp index 1c4084244818..f62e6884e8a8 100644 --- a/llvm/tools/yaml2obj/yaml2elf.cpp +++ b/llvm/tools/yaml2obj/yaml2elf.cpp @@ -177,9 +177,8 @@ static void handleSymtabSectionHeader( template static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) { using namespace llvm::ELF; - using namespace llvm::object; - typedef typename ELFObjectFile::Elf_Ehdr Elf_Ehdr; - typedef typename ELFObjectFile::Elf_Shdr Elf_Shdr; + typedef typename object::ELFObjectFile::Elf_Ehdr Elf_Ehdr; + typedef typename object::ELFObjectFile::Elf_Shdr Elf_Shdr; const ELFYAML::FileHeader &Hdr = Doc.Header;