Revert "(HEAD -> master, origin/master, origin/HEAD) [ProfileData] (llvm) Use Error in InstrProf and Coverage, NFC"

This reverts commit r269462. It fails two llvm-profdata tests.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269466 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Vedant Kumar
2016-05-13 20:09:39 +00:00
parent 5b34ed8191
commit 8007bdd41f
18 changed files with 503 additions and 601 deletions
+3 -2
View File
@@ -156,7 +156,8 @@ void InstrProfWriter::setOutputSparse(bool Sparse) {
this->Sparse = Sparse;
}
Error InstrProfWriter::addRecord(InstrProfRecord &&I, uint64_t Weight) {
std::error_code InstrProfWriter::addRecord(InstrProfRecord &&I,
uint64_t Weight) {
auto &ProfileDataMap = FunctionData[I.Name];
bool NewFunc;
@@ -179,7 +180,7 @@ Error InstrProfWriter::addRecord(InstrProfRecord &&I, uint64_t Weight) {
Dest.sortValueData();
return Dest.takeError();
return Dest.getError();
}
bool InstrProfWriter::shouldEncodeData(const ProfilingData &PD) {