Differential Revision: https://reviews.llvm.org/D30096
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295605
91177308-0d34-0410-b5e6-
96231b3b80d8
// Cache the demangled names.
unsigned I = 0;
for (const auto &Function : Coverage.getCoveredFunctions())
- DC.DemangledNames[Function.Name] = Symbols[I++];
+ // On Windows, lines in the demangler's output file end with "\r\n".
+ // Splitting by '\n' keeps '\r's, so cut them now.
+ DC.DemangledNames[Function.Name] = Symbols[I++].rtrim();
}
void CodeCoverageTool::writeSourceFileView(StringRef SourceFile,