diff options
author | Zachary Turner <zturner@google.com> | 2017-06-14 05:48:33 +0000 |
---|---|---|
committer | Zachary Turner <zturner@google.com> | 2017-06-14 05:48:33 +0000 |
commit | ba59c2f63b49d43dcca597c9e990e4c42ab42983 (patch) | |
tree | bf6c963c2dcf4fa9a1ae653d5648167e73c49c79 /llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | |
parent | 6bffe446598b6a13b3768d934c138c4954db5c8d (diff) | |
download | llvm-ba59c2f63b49d43dcca597c9e990e4c42ab42983.zip llvm-ba59c2f63b49d43dcca597c9e990e4c42ab42983.tar.gz llvm-ba59c2f63b49d43dcca597c9e990e4c42ab42983.tar.bz2 |
Use make_shared instead of make_unique.
llvm-svn: 305369
Diffstat (limited to 'llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp b/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp index e670ca92..728079a 100644 --- a/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp +++ b/llvm/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp @@ -503,7 +503,7 @@ std::shared_ptr<DebugSubsection> YAMLFrameDataSubsection::toCodeViewSubsection( const codeview::StringsAndChecksums &SC) const { assert(SC.hasStrings()); - auto Result = llvm::make_unique<DebugFrameDataSubsection>(); + auto Result = std::make_shared<DebugFrameDataSubsection>(); for (const auto &YF : Frames) { codeview::FrameData F; F.CodeSize = YF.CodeSize; @@ -524,7 +524,7 @@ std::shared_ptr<DebugSubsection> YAMLCoffSymbolRVASubsection::toCodeViewSubsection( BumpPtrAllocator &Allocator, const codeview::StringsAndChecksums &SC) const { - auto Result = llvm::make_unique<DebugSymbolRVASubsection>(); + auto Result = std::make_shared<DebugSymbolRVASubsection>(); for (const auto &RVA : RVAs) Result->addRVA(RVA); return Result; |