llvm.org GIT mirror llvm / d31d3eb
[profdata] Remove constructor that MSVC 2013 pretends to not understand. No functionality change intended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276284 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 3 years ago
1 changed file(s) with 2 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
110110 struct WeightedFile {
111111 std::string Filename;
112112 uint64_t Weight;
113
114 WeightedFile() {}
115
116 WeightedFile(const std::string &F, uint64_t W) : Filename{F}, Weight{W} {}
117113 };
118114 typedef SmallVector WeightedFileVector;
119115
304300 if (WeightStr.getAsInteger(10, Weight) || Weight < 1)
305301 exitWithError("Input weight must be a positive integer.");
306302
307 return WeightedFile(FileName, Weight);
303 return {FileName, Weight};
308304 }
309305
310306 static std::unique_ptr
329325 Filename);
330326 // If it's a source file, collect it.
331327 if (llvm::sys::fs::is_regular_file(Status)) {
332 WNI.emplace_back(Filename, Weight);
328 WNI.push_back({Filename, Weight});
333329 return;
334330 }
335331