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/unittests/XRay/FDRRecordPrinterTest.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/unittests/XRay/FDRRecordPrinterTest.cpp')
| -rw-r--r-- | llvm/unittests/XRay/FDRRecordPrinterTest.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/llvm/unittests/XRay/FDRRecordPrinterTest.cpp b/llvm/unittests/XRay/FDRRecordPrinterTest.cpp index 39c1e866f04..bfee1c5d388 100644 --- a/llvm/unittests/XRay/FDRRecordPrinterTest.cpp +++ b/llvm/unittests/XRay/FDRRecordPrinterTest.cpp @@ -22,7 +22,7 @@ template <class RecordType> struct Helper {}; template <> struct Helper<BufferExtents> { static std::unique_ptr<Record> construct() { - return make_unique<BufferExtents>(1); + return std::make_unique<BufferExtents>(1); } static const char *expected() { return "<Buffer: size = 1 bytes>"; } @@ -30,7 +30,7 @@ template <> struct Helper<BufferExtents> { template <> struct Helper<WallclockRecord> { static std::unique_ptr<Record> construct() { - return make_unique<WallclockRecord>(1, 2); + return std::make_unique<WallclockRecord>(1, 2); } static const char *expected() { return "<Wall Time: seconds = 1.000002>"; } @@ -38,7 +38,7 @@ template <> struct Helper<WallclockRecord> { template <> struct Helper<NewCPUIDRecord> { static std::unique_ptr<Record> construct() { - return make_unique<NewCPUIDRecord>(1, 2); + return std::make_unique<NewCPUIDRecord>(1, 2); } static const char *expected() { return "<CPU: id = 1, tsc = 2>"; } @@ -46,7 +46,7 @@ template <> struct Helper<NewCPUIDRecord> { template <> struct Helper<TSCWrapRecord> { static std::unique_ptr<Record> construct() { - return make_unique<TSCWrapRecord>(1); + return std::make_unique<TSCWrapRecord>(1); } static const char *expected() { return "<TSC Wrap: base = 1>"; } @@ -54,7 +54,7 @@ template <> struct Helper<TSCWrapRecord> { template <> struct Helper<CustomEventRecord> { static std::unique_ptr<Record> construct() { - return make_unique<CustomEventRecord>(4, 1, 2, "data"); + return std::make_unique<CustomEventRecord>(4, 1, 2, "data"); } static const char *expected() { @@ -64,7 +64,7 @@ template <> struct Helper<CustomEventRecord> { template <> struct Helper<CallArgRecord> { static std::unique_ptr<Record> construct() { - return make_unique<CallArgRecord>(1); + return std::make_unique<CallArgRecord>(1); } static const char *expected() { @@ -74,7 +74,7 @@ template <> struct Helper<CallArgRecord> { template <> struct Helper<PIDRecord> { static std::unique_ptr<Record> construct() { - return make_unique<PIDRecord>(1); + return std::make_unique<PIDRecord>(1); } static const char *expected() { return "<PID: 1>"; } @@ -82,7 +82,7 @@ template <> struct Helper<PIDRecord> { template <> struct Helper<NewBufferRecord> { static std::unique_ptr<Record> construct() { - return make_unique<NewBufferRecord>(1); + return std::make_unique<NewBufferRecord>(1); } static const char *expected() { return "<Thread ID: 1>"; } @@ -90,7 +90,7 @@ template <> struct Helper<NewBufferRecord> { template <> struct Helper<EndBufferRecord> { static std::unique_ptr<Record> construct() { - return make_unique<EndBufferRecord>(); + return std::make_unique<EndBufferRecord>(); } static const char *expected() { return "<End of Buffer>"; } |

