mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-19 02:52:53 +02:00
[profdata] Remove constructor that MSVC 2013 pretends to not understand.
No functionality change intended. llvm-svn: 276284
This commit is contained in:
parent
9b2c75bbd5
commit
a4f804055a
@ -111,10 +111,6 @@ static void handleMergeWriterError(Error E, StringRef WhenceFile = "",
|
|||||||
struct WeightedFile {
|
struct WeightedFile {
|
||||||
std::string Filename;
|
std::string Filename;
|
||||||
uint64_t Weight;
|
uint64_t Weight;
|
||||||
|
|
||||||
WeightedFile() {}
|
|
||||||
|
|
||||||
WeightedFile(const std::string &F, uint64_t W) : Filename{F}, Weight{W} {}
|
|
||||||
};
|
};
|
||||||
typedef SmallVector<WeightedFile, 5> WeightedFileVector;
|
typedef SmallVector<WeightedFile, 5> WeightedFileVector;
|
||||||
|
|
||||||
@ -305,7 +301,7 @@ static WeightedFile parseWeightedFile(const StringRef &WeightedFilename) {
|
|||||||
if (WeightStr.getAsInteger(10, Weight) || Weight < 1)
|
if (WeightStr.getAsInteger(10, Weight) || Weight < 1)
|
||||||
exitWithError("Input weight must be a positive integer.");
|
exitWithError("Input weight must be a positive integer.");
|
||||||
|
|
||||||
return WeightedFile(FileName, Weight);
|
return {FileName, Weight};
|
||||||
}
|
}
|
||||||
|
|
||||||
static std::unique_ptr<MemoryBuffer>
|
static std::unique_ptr<MemoryBuffer>
|
||||||
@ -330,7 +326,7 @@ static void addWeightedInput(WeightedFileVector &WNI, const WeightedFile &WF) {
|
|||||||
Filename);
|
Filename);
|
||||||
// If it's a source file, collect it.
|
// If it's a source file, collect it.
|
||||||
if (llvm::sys::fs::is_regular_file(Status)) {
|
if (llvm::sys::fs::is_regular_file(Status)) {
|
||||||
WNI.emplace_back(Filename, Weight);
|
WNI.push_back({Filename, Weight});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user