mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
llvm-cov: Moved printing after error checks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@195153 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0233715d74
commit
a49e1f55da
@ -281,18 +281,20 @@ void FileInfo::print(raw_fd_ostream &OS, StringRef gcnoFile,
|
||||
for (StringMap<LineCounts>::const_iterator I = LineInfo.begin(),
|
||||
E = LineInfo.end(); I != E; ++I) {
|
||||
StringRef Filename = I->first();
|
||||
OS << " -: 0:Source:" << Filename << "\n";
|
||||
OS << " -: 0:Graph:" << gcnoFile << "\n";
|
||||
OS << " -: 0:Data:" << gcdaFile << "\n";
|
||||
OS << " -: 0:Runs:" << RunCount << "\n";
|
||||
OS << " -: 0:Programs:" << ProgramCount << "\n";
|
||||
const LineCounts &L = I->second;
|
||||
OwningPtr<MemoryBuffer> Buff;
|
||||
if (error_code ec = MemoryBuffer::getFileOrSTDIN(Filename, Buff)) {
|
||||
errs() << Filename << ": " << ec.message() << "\n";
|
||||
return;
|
||||
}
|
||||
StringRef AllLines = Buff->getBuffer();
|
||||
|
||||
OS << " -: 0:Source:" << Filename << "\n";
|
||||
OS << " -: 0:Graph:" << gcnoFile << "\n";
|
||||
OS << " -: 0:Data:" << gcdaFile << "\n";
|
||||
OS << " -: 0:Runs:" << RunCount << "\n";
|
||||
OS << " -: 0:Programs:" << ProgramCount << "\n";
|
||||
|
||||
const LineCounts &L = I->second;
|
||||
uint32_t i = 0;
|
||||
while (!AllLines.empty()) {
|
||||
LineCounts::const_iterator CountIt = L.find(i);
|
||||
|
Loading…
Reference in New Issue
Block a user