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 | f0a6e52293b3094a02bee7215e969833e20f6cf3 (patch) | |
tree | 17d97211ed7086728ec907559ba384db5e59060d /lib/ObjectYAML | |
parent | e4b3feefd482d9249830379c7bc50638c4ff979a (diff) |
Use make_shared instead of make_unique.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305369 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ObjectYAML')
-rw-r--r-- | lib/ObjectYAML/CodeViewYAMLDebugSections.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp b/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp index e670ca923b0b..728079a2a6b6 100644 --- a/lib/ObjectYAML/CodeViewYAMLDebugSections.cpp +++ b/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; |