diff options
Diffstat (limited to 'llvm/tools/obj2yaml/elf2yaml.cpp')
-rw-r--r-- | llvm/tools/obj2yaml/elf2yaml.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/llvm/tools/obj2yaml/elf2yaml.cpp b/llvm/tools/obj2yaml/elf2yaml.cpp index a228d3917ee..baa1b863273 100644 --- a/llvm/tools/obj2yaml/elf2yaml.cpp +++ b/llvm/tools/obj2yaml/elf2yaml.cpp @@ -137,7 +137,7 @@ ELFDumper<ELFT>::getUniquedSymbolName(const Elf_Sym *Sym, StringRef StrTable, } template <class ELFT> Expected<ELFYAML::Object *> ELFDumper<ELFT>::dump() { - auto Y = make_unique<ELFYAML::Object>(); + auto Y = std::make_unique<ELFYAML::Object>(); // Dump header. We do not dump SHEntSize, SHOffset, SHNum and SHStrNdx field. // When not explicitly set, the values are set by yaml2obj automatically @@ -453,7 +453,7 @@ Error ELFDumper<ELFT>::dumpCommonRelocationSection( template <class ELFT> Expected<ELFYAML::DynamicSection *> ELFDumper<ELFT>::dumpDynamicSection(const Elf_Shdr *Shdr) { - auto S = make_unique<ELFYAML::DynamicSection>(); + auto S = std::make_unique<ELFYAML::DynamicSection>(); if (Error E = dumpCommonSection(Shdr, *S)) return std::move(E); @@ -470,7 +470,7 @@ ELFDumper<ELFT>::dumpDynamicSection(const Elf_Shdr *Shdr) { template <class ELFT> Expected<ELFYAML::RelocationSection *> ELFDumper<ELFT>::dumpRelocSection(const Elf_Shdr *Shdr) { - auto S = make_unique<ELFYAML::RelocationSection>(); + auto S = std::make_unique<ELFYAML::RelocationSection>(); if (auto E = dumpCommonRelocationSection(Shdr, *S)) return std::move(E); @@ -508,7 +508,7 @@ ELFDumper<ELFT>::dumpRelocSection(const Elf_Shdr *Shdr) { template <class ELFT> Expected<ELFYAML::RawContentSection *> ELFDumper<ELFT>::dumpContentSection(const Elf_Shdr *Shdr) { - auto S = make_unique<ELFYAML::RawContentSection>(); + auto S = std::make_unique<ELFYAML::RawContentSection>(); if (Error E = dumpCommonSection(Shdr, *S)) return std::move(E); @@ -532,7 +532,7 @@ ELFDumper<ELFT>::dumpContentSection(const Elf_Shdr *Shdr) { template <class ELFT> Expected<ELFYAML::SymtabShndxSection *> ELFDumper<ELFT>::dumpSymtabShndxSection(const Elf_Shdr *Shdr) { - auto S = make_unique<ELFYAML::SymtabShndxSection>(); + auto S = std::make_unique<ELFYAML::SymtabShndxSection>(); if (Error E = dumpCommonSection(Shdr, *S)) return std::move(E); @@ -547,7 +547,7 @@ ELFDumper<ELFT>::dumpSymtabShndxSection(const Elf_Shdr *Shdr) { template <class ELFT> Expected<ELFYAML::NoBitsSection *> ELFDumper<ELFT>::dumpNoBitsSection(const Elf_Shdr *Shdr) { - auto S = make_unique<ELFYAML::NoBitsSection>(); + auto S = std::make_unique<ELFYAML::NoBitsSection>(); if (Error E = dumpCommonSection(Shdr, *S)) return std::move(E); S->Size = Shdr->sh_size; @@ -561,7 +561,7 @@ ELFDumper<ELFT>::dumpVerdefSection(const Elf_Shdr *Shdr) { typedef typename ELFT::Verdef Elf_Verdef; typedef typename ELFT::Verdaux Elf_Verdaux; - auto S = make_unique<ELFYAML::VerdefSection>(); + auto S = std::make_unique<ELFYAML::VerdefSection>(); if (Error E = dumpCommonSection(Shdr, *S)) return std::move(E); @@ -610,7 +610,7 @@ Expected<ELFYAML::SymverSection *> ELFDumper<ELFT>::dumpSymverSection(const Elf_Shdr *Shdr) { typedef typename ELFT::Half Elf_Half; - auto S = make_unique<ELFYAML::SymverSection>(); + auto S = std::make_unique<ELFYAML::SymverSection>(); if (Error E = dumpCommonSection(Shdr, *S)) return std::move(E); @@ -629,7 +629,7 @@ ELFDumper<ELFT>::dumpVerneedSection(const Elf_Shdr *Shdr) { typedef typename ELFT::Verneed Elf_Verneed; typedef typename ELFT::Vernaux Elf_Vernaux; - auto S = make_unique<ELFYAML::VerneedSection>(); + auto S = std::make_unique<ELFYAML::VerneedSection>(); if (Error E = dumpCommonSection(Shdr, *S)) return std::move(E); @@ -682,7 +682,7 @@ ELFDumper<ELFT>::dumpVerneedSection(const Elf_Shdr *Shdr) { template <class ELFT> Expected<ELFYAML::Group *> ELFDumper<ELFT>::dumpGroup(const Elf_Shdr *Shdr) { - auto S = make_unique<ELFYAML::Group>(); + auto S = std::make_unique<ELFYAML::Group>(); if (Error E = dumpCommonSection(Shdr, *S)) return std::move(E); @@ -730,7 +730,7 @@ Expected<ELFYAML::MipsABIFlags *> ELFDumper<ELFT>::dumpMipsABIFlags(const Elf_Shdr *Shdr) { assert(Shdr->sh_type == ELF::SHT_MIPS_ABIFLAGS && "Section type is not SHT_MIPS_ABIFLAGS"); - auto S = make_unique<ELFYAML::MipsABIFlags>(); + auto S = std::make_unique<ELFYAML::MipsABIFlags>(); if (Error E = dumpCommonSection(Shdr, *S)) return std::move(E); |