LineIterator: Provide a variant that keeps blank lines
It isn't always useful to skip blank lines, as evidenced by the somewhat awkward use of line_iterator in llvm-cov. This adds a knob to control whether or not to skip blanks. llvm-svn: 217960
This commit is contained in:
@@ -159,7 +159,7 @@ bool SampleProfileReader::loadText() {
|
||||
return false;
|
||||
}
|
||||
MemoryBuffer &Buffer = *BufferOrErr.get();
|
||||
line_iterator LineIt(Buffer, '#');
|
||||
line_iterator LineIt(Buffer, /*SkipBlanks=*/true, '#');
|
||||
|
||||
// Read the profile of each function. Since each function may be
|
||||
// mentioned more than once, and we are collecting flat profiles,
|
||||
|
||||
Reference in New Issue
Block a user