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/tools/sancov/sancov.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/tools/sancov/sancov.cpp')
-rw-r--r-- | llvm/tools/sancov/sancov.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/sancov/sancov.cpp b/llvm/tools/sancov/sancov.cpp index acf47b99b9c..9f5de69ee55 100644 --- a/llvm/tools/sancov/sancov.cpp +++ b/llvm/tools/sancov/sancov.cpp @@ -243,7 +243,7 @@ RawCoverage::read(const std::string &FileName) { return make_error_code(errc::illegal_byte_sequence); } - auto Addrs = llvm::make_unique<std::set<uint64_t>>(); + auto Addrs = std::make_unique<std::set<uint64_t>>(); switch (Header->Bitness) { case Bitness64: @@ -458,7 +458,7 @@ static std::string parseScalarString(yaml::Node *N) { std::unique_ptr<SymbolizedCoverage> SymbolizedCoverage::read(const std::string &InputFile) { - auto Coverage(make_unique<SymbolizedCoverage>()); + auto Coverage(std::make_unique<SymbolizedCoverage>()); std::map<std::string, CoveragePoint> Points; ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = @@ -958,7 +958,7 @@ static bool isSymbolizedCoverageFile(const std::string &FileName) { static std::unique_ptr<SymbolizedCoverage> symbolize(const RawCoverage &Data, const std::string ObjectFile) { - auto Coverage = make_unique<SymbolizedCoverage>(); + auto Coverage = std::make_unique<SymbolizedCoverage>(); ErrorOr<std::unique_ptr<MemoryBuffer>> BufOrErr = MemoryBuffer::getFile(ObjectFile); @@ -1112,7 +1112,7 @@ merge(const std::vector<std::unique_ptr<SymbolizedCoverage>> &Coverages) { if (Coverages.empty()) return nullptr; - auto Result = make_unique<SymbolizedCoverage>(); + auto Result = std::make_unique<SymbolizedCoverage>(); for (size_t I = 0; I < Coverages.size(); ++I) { const SymbolizedCoverage &Coverage = *Coverages[I]; |