summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/GCOV.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2014-05-07 16:01:27 +0000
committerJustin Bogner <mail@justinbogner.com>2014-05-07 16:01:27 +0000
commit7c093732e8b260e4656e31759e09b81f2b1056ed (patch)
treed1957ad7c48a954f08b2a79a48ed0807203813ef /llvm/lib/IR/GCOV.cpp
parentde3e36be383b35806fb7734d7fdec359ca526ccd (diff)
downloadbcm5719-llvm-7c093732e8b260e4656e31759e09b81f2b1056ed.tar.gz
bcm5719-llvm-7c093732e8b260e4656e31759e09b81f2b1056ed.zip
llvm-cov: Explicitly namespace llvm::make_unique to keep MSVC happy
This is a followup to r208171, where a call to make_unique was disambiguated for MSVC. Disambiguate two more calls, and remove the comment about it since this is what we do everywhere. llvm-svn: 208219
Diffstat (limited to 'llvm/lib/IR/GCOV.cpp')
-rw-r--r--llvm/lib/IR/GCOV.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/IR/GCOV.cpp b/llvm/lib/IR/GCOV.cpp
index e8d26e0d9e1..f2099d6baf1 100644
--- a/llvm/lib/IR/GCOV.cpp
+++ b/llvm/lib/IR/GCOV.cpp
@@ -511,16 +511,14 @@ std::string FileInfo::getCoveragePath(StringRef Filename,
std::unique_ptr<raw_ostream>
FileInfo::openCoveragePath(StringRef CoveragePath) {
if (Options.NoOutput)
- return make_unique<raw_null_ostream>();
+ return llvm::make_unique<raw_null_ostream>();
std::string ErrorInfo;
- // FIXME: When using MSVS, we end up having both std::make_unique and
- // llvm::make_unique which conflict. Explicitly use the llvm:: version.
auto OS = llvm::make_unique<raw_fd_ostream>(CoveragePath.str().c_str(),
ErrorInfo, sys::fs::F_Text);
if (!ErrorInfo.empty()) {
errs() << ErrorInfo << "\n";
- return make_unique<raw_null_ostream>();
+ return llvm::make_unique<raw_null_ostream>();
}
return std::move(OS);
}
OpenPOWER on IntegriCloud