OSDN Git Service

LineIterator: Provide a variant that keeps blank lines
authorJustin Bogner <mail@justinbogner.com>
Wed, 17 Sep 2014 15:43:01 +0000 (15:43 +0000)
committerJustin Bogner <mail@justinbogner.com>
Wed, 17 Sep 2014 15:43:01 +0000 (15:43 +0000)
commit0a277ea23d98dec544f04d61c3429c040cf842d1
tree36447d688c75b58fe56d22093eb7286a41d591f4
parent27608d83939ba31f124bebd2d1d6bed8bb4eda0b
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@217960 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ProfileData/InstrProfReader.h
include/llvm/Support/LineIterator.h
lib/ProfileData/SampleProfReader.cpp
lib/Support/LineIterator.cpp
tools/llvm-cov/SourceCoverageView.cpp
unittests/Support/LineIteratorTest.cpp