mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-19 02:42:58 +00:00
[llvm-cov] Respect Windows line endings when parsing demangled symbols.
Differential Revision: https://reviews.llvm.org/D30096 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295605 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
395e4206ab
commit
e3a9558370
@ -451,7 +451,9 @@ void CodeCoverageTool::demangleSymbols(const CoverageMapping &Coverage) {
|
||||
// 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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user