diff options
Diffstat (limited to 'llvm/lib/ObjectYAML')
-rw-r--r-- | llvm/lib/ObjectYAML/ELFEmitter.cpp | 4 | ||||
-rw-r--r-- | llvm/lib/ObjectYAML/MinidumpYAML.cpp | 24 |
2 files changed, 14 insertions, 14 deletions
diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp index d2ceb40e2c1..5e53baf5fa4 100644 --- a/llvm/lib/ObjectYAML/ELFEmitter.cpp +++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp @@ -188,7 +188,7 @@ template <class ELFT> ELFState<ELFT>::ELFState(ELFYAML::Object &D) : Doc(D) { if (Doc.Sections.empty() || Doc.Sections.front()->Type != ELF::SHT_NULL) Doc.Sections.insert( Doc.Sections.begin(), - llvm::make_unique<ELFYAML::Section>( + std::make_unique<ELFYAML::Section>( ELFYAML::Section::SectionKind::RawContent, /*IsImplicit=*/true)); std::vector<StringRef> ImplicitSections = {".symtab", ".strtab", ".shstrtab"}; @@ -201,7 +201,7 @@ template <class ELFT> ELFState<ELFT>::ELFState(ELFYAML::Object &D) : Doc(D) { if (DocSections.count(SecName)) continue; - std::unique_ptr<ELFYAML::Section> Sec = llvm::make_unique<ELFYAML::Section>( + std::unique_ptr<ELFYAML::Section> Sec = std::make_unique<ELFYAML::Section>( ELFYAML::Section::SectionKind::RawContent, true /*IsImplicit*/); Sec->Name = SecName; Doc.Sections.push_back(std::move(Sec)); diff --git a/llvm/lib/ObjectYAML/MinidumpYAML.cpp b/llvm/lib/ObjectYAML/MinidumpYAML.cpp index f5f2acd0cc4..62995de5da2 100644 --- a/llvm/lib/ObjectYAML/MinidumpYAML.cpp +++ b/llvm/lib/ObjectYAML/MinidumpYAML.cpp @@ -193,17 +193,17 @@ std::unique_ptr<Stream> Stream::create(StreamType Type) { StreamKind Kind = getKind(Type); switch (Kind) { case StreamKind::MemoryList: - return llvm::make_unique<MemoryListStream>(); + return std::make_unique<MemoryListStream>(); case StreamKind::ModuleList: - return llvm::make_unique<ModuleListStream>(); + return std::make_unique<ModuleListStream>(); case StreamKind::RawContent: - return llvm::make_unique<RawContentStream>(Type); + return std::make_unique<RawContentStream>(Type); case StreamKind::SystemInfo: - return llvm::make_unique<SystemInfoStream>(); + return std::make_unique<SystemInfoStream>(); case StreamKind::TextContent: - return llvm::make_unique<TextContentStream>(Type); + return std::make_unique<TextContentStream>(Type); case StreamKind::ThreadList: - return llvm::make_unique<ThreadListStream>(); + return std::make_unique<ThreadListStream>(); } llvm_unreachable("Unhandled stream kind!"); } @@ -602,7 +602,7 @@ Stream::create(const Directory &StreamDesc, const object::MinidumpFile &File) { return ExpectedContent.takeError(); Ranges.push_back({MD, *ExpectedContent}); } - return llvm::make_unique<MemoryListStream>(std::move(Ranges)); + return std::make_unique<MemoryListStream>(std::move(Ranges)); } case StreamKind::ModuleList: { auto ExpectedList = File.getModuleList(); @@ -622,10 +622,10 @@ Stream::create(const Directory &StreamDesc, const object::MinidumpFile &File) { Modules.push_back( {M, std::move(*ExpectedName), *ExpectedCv, *ExpectedMisc}); } - return llvm::make_unique<ModuleListStream>(std::move(Modules)); + return std::make_unique<ModuleListStream>(std::move(Modules)); } case StreamKind::RawContent: - return llvm::make_unique<RawContentStream>(StreamDesc.Type, + return std::make_unique<RawContentStream>(StreamDesc.Type, File.getRawStream(StreamDesc)); case StreamKind::SystemInfo: { auto ExpectedInfo = File.getSystemInfo(); @@ -634,11 +634,11 @@ Stream::create(const Directory &StreamDesc, const object::MinidumpFile &File) { auto ExpectedCSDVersion = File.getString(ExpectedInfo->CSDVersionRVA); if (!ExpectedCSDVersion) return ExpectedInfo.takeError(); - return llvm::make_unique<SystemInfoStream>(*ExpectedInfo, + return std::make_unique<SystemInfoStream>(*ExpectedInfo, std::move(*ExpectedCSDVersion)); } case StreamKind::TextContent: - return llvm::make_unique<TextContentStream>( + return std::make_unique<TextContentStream>( StreamDesc.Type, toStringRef(File.getRawStream(StreamDesc))); case StreamKind::ThreadList: { auto ExpectedList = File.getThreadList(); @@ -654,7 +654,7 @@ Stream::create(const Directory &StreamDesc, const object::MinidumpFile &File) { return ExpectedContext.takeError(); Threads.push_back({T, *ExpectedStack, *ExpectedContext}); } - return llvm::make_unique<ThreadListStream>(std::move(Threads)); + return std::make_unique<ThreadListStream>(std::move(Threads)); } } llvm_unreachable("Unhandled stream kind!"); |