summaryrefslogtreecommitdiffstats
path: root/lldb/source/Utility/StructuredData.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2019-08-14 22:19:23 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2019-08-14 22:19:23 +0000
commita8f3ae7c9cefa8296d119f92ca444087cdccf712 (patch)
tree8bef9bbcd46822f1697895ff3e8da25d0cda1bc9 /lldb/source/Utility/StructuredData.cpp
parent1737f71322e3d440dcee74ef06640ad01945f3b9 (diff)
downloadbcm5719-llvm-a8f3ae7c9cefa8296d119f92ca444087cdccf712.tar.gz
bcm5719-llvm-a8f3ae7c9cefa8296d119f92ca444087cdccf712.zip
[LLDB] 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. Differential revision: https://reviews.llvm.org/D66259 llvm-svn: 368933
Diffstat (limited to 'lldb/source/Utility/StructuredData.cpp')
-rw-r--r--lldb/source/Utility/StructuredData.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/Utility/StructuredData.cpp b/lldb/source/Utility/StructuredData.cpp
index 0e203f9739d..fde5093428f 100644
--- a/lldb/source/Utility/StructuredData.cpp
+++ b/lldb/source/Utility/StructuredData.cpp
@@ -47,7 +47,7 @@ StructuredData::ParseJSONFromFile(const FileSpec &input_spec, Status &error) {
static StructuredData::ObjectSP ParseJSONObject(JSONParser &json_parser) {
// The "JSONParser::Token::ObjectStart" token should have already been
// consumed by the time this function is called
- auto dict_up = llvm::make_unique<StructuredData::Dictionary>();
+ auto dict_up = std::make_unique<StructuredData::Dictionary>();
std::string value;
std::string key;
@@ -78,7 +78,7 @@ static StructuredData::ObjectSP ParseJSONObject(JSONParser &json_parser) {
static StructuredData::ObjectSP ParseJSONArray(JSONParser &json_parser) {
// The "JSONParser::Token::ObjectStart" token should have already been
// consumed by the time this function is called
- auto array_up = llvm::make_unique<StructuredData::Array>();
+ auto array_up = std::make_unique<StructuredData::Array>();
std::string value;
std::string key;
OpenPOWER on IntegriCloud