diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-15 15:54:37 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-08-15 15:54:37 +0000 |
commit | 0eaee545eef49ff9498234d3a51a5cbde59bf976 (patch) | |
tree | fd7691e102022fb97622c5485fa8c4f506fc124e /llvm/lib/XRay/FDRRecordProducer.cpp | |
parent | 1c34d10776828c0756ff4f0b2b9aa8bda2be348a (diff) | |
download | bcm5719-llvm-0eaee545eef49ff9498234d3a51a5cbde59bf976.tar.gz bcm5719-llvm-0eaee545eef49ff9498234d3a51a5cbde59bf976.zip |
[llvm] Migrate llvm::make_unique to std::make_unique
Now that we've moved to C++14, we no longer need the llvm::make_unique
implementation from STLExtras.h. This patch is a mechanical replacement
of (hopefully) all the llvm::make_unique instances across the monorepo.
llvm-svn: 369013
Diffstat (limited to 'llvm/lib/XRay/FDRRecordProducer.cpp')
-rw-r--r-- | llvm/lib/XRay/FDRRecordProducer.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/llvm/lib/XRay/FDRRecordProducer.cpp b/llvm/lib/XRay/FDRRecordProducer.cpp index 870dd7c4fad..02132b283e9 100644 --- a/llvm/lib/XRay/FDRRecordProducer.cpp +++ b/llvm/lib/XRay/FDRRecordProducer.cpp @@ -40,32 +40,32 @@ metadataRecordType(const XRayFileHeader &Header, uint8_t T) { "Invalid metadata record type: %d", T); switch (T) { case MetadataRecordKinds::NewBufferKind: - return make_unique<NewBufferRecord>(); + return std::make_unique<NewBufferRecord>(); case MetadataRecordKinds::EndOfBufferKind: if (Header.Version >= 2) return createStringError( std::make_error_code(std::errc::executable_format_error), "End of buffer records are no longer supported starting version " "2 of the log."); - return make_unique<EndBufferRecord>(); + return std::make_unique<EndBufferRecord>(); case MetadataRecordKinds::NewCPUIdKind: - return make_unique<NewCPUIDRecord>(); + return std::make_unique<NewCPUIDRecord>(); case MetadataRecordKinds::TSCWrapKind: - return make_unique<TSCWrapRecord>(); + return std::make_unique<TSCWrapRecord>(); case MetadataRecordKinds::WalltimeMarkerKind: - return make_unique<WallclockRecord>(); + return std::make_unique<WallclockRecord>(); case MetadataRecordKinds::CustomEventMarkerKind: if (Header.Version >= 5) - return make_unique<CustomEventRecordV5>(); - return make_unique<CustomEventRecord>(); + return std::make_unique<CustomEventRecordV5>(); + return std::make_unique<CustomEventRecord>(); case MetadataRecordKinds::CallArgumentKind: - return make_unique<CallArgRecord>(); + return std::make_unique<CallArgRecord>(); case MetadataRecordKinds::BufferExtentsKind: - return make_unique<BufferExtents>(); + return std::make_unique<BufferExtents>(); case MetadataRecordKinds::TypedEventMarkerKind: - return make_unique<TypedEventRecord>(); + return std::make_unique<TypedEventRecord>(); case MetadataRecordKinds::PidKind: - return make_unique<PIDRecord>(); + return std::make_unique<PIDRecord>(); case MetadataRecordKinds::EnumEndMarker: llvm_unreachable("Invalid MetadataRecordKind"); } @@ -167,7 +167,7 @@ Expected<std::unique_ptr<Record>> FileBasedRecordProducer::produce() { LoadedType, PreReadOffset)); R = std::move(MetadataRecordOrErr.get()); } else { - R = llvm::make_unique<FunctionRecord>(); + R = std::make_unique<FunctionRecord>(); } RecordInitializer RI(E, OffsetPtr); |