summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-profdata/llvm-profdata.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-07-21 14:29:11 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-07-21 14:29:11 +0000
commit929e7dbb7a197a960c6c90e7eb6ed25c4c32b995 (patch)
tree786412315c7778007ab4974a879045fe9d64839b /llvm/tools/llvm-profdata/llvm-profdata.cpp
parenteea3114ff97598645000cba400441f3f84628dbd (diff)
downloadbcm5719-llvm-929e7dbb7a197a960c6c90e7eb6ed25c4c32b995.tar.gz
bcm5719-llvm-929e7dbb7a197a960c6c90e7eb6ed25c4c32b995.zip
[profdata] Remove constructor that MSVC 2013 pretends to not understand.
No functionality change intended. llvm-svn: 276284
Diffstat (limited to 'llvm/tools/llvm-profdata/llvm-profdata.cpp')
-rw-r--r--llvm/tools/llvm-profdata/llvm-profdata.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/tools/llvm-profdata/llvm-profdata.cpp b/llvm/tools/llvm-profdata/llvm-profdata.cpp
index b2da3c24664..85106ec98d4 100644
--- a/llvm/tools/llvm-profdata/llvm-profdata.cpp
+++ b/llvm/tools/llvm-profdata/llvm-profdata.cpp
@@ -111,10 +111,6 @@ static void handleMergeWriterError(Error E, StringRef WhenceFile = "",
struct WeightedFile {
std::string Filename;
uint64_t Weight;
-
- WeightedFile() {}
-
- WeightedFile(const std::string &F, uint64_t W) : Filename{F}, Weight{W} {}
};
typedef SmallVector<WeightedFile, 5> WeightedFileVector;
@@ -305,7 +301,7 @@ static WeightedFile parseWeightedFile(const StringRef &WeightedFilename) {
if (WeightStr.getAsInteger(10, Weight) || Weight < 1)
exitWithError("Input weight must be a positive integer.");
- return WeightedFile(FileName, Weight);
+ return {FileName, Weight};
}
static std::unique_ptr<MemoryBuffer>
@@ -330,7 +326,7 @@ static void addWeightedInput(WeightedFileVector &WNI, const WeightedFile &WF) {
Filename);
// If it's a source file, collect it.
if (llvm::sys::fs::is_regular_file(Status)) {
- WNI.emplace_back(Filename, Weight);
+ WNI.push_back({Filename, Weight});
return;
}
OpenPOWER on IntegriCloud