diff options
author | Justin Bogner <mail@justinbogner.com> | 2014-07-29 22:29:23 +0000 |
---|---|---|
committer | Justin Bogner <mail@justinbogner.com> | 2014-07-29 22:29:23 +0000 |
commit | cf36a366a81bdca3083cdcdf2f405a9071598230 (patch) | |
tree | ed0e2d9ba96ed693196b36d2b81b2cd09ee825ec /llvm/lib/ProfileData | |
parent | 9e9623ca6417de15c02b3ba164a0813447de2776 (diff) | |
download | bcm5719-llvm-cf36a366a81bdca3083cdcdf2f405a9071598230.tar.gz bcm5719-llvm-cf36a366a81bdca3083cdcdf2f405a9071598230.zip |
llvm-profdata: Clean up and reorganize some tests
This moves some tests around to make it clearer what's being tested,
and adds very rudimentary comment syntax to the text input format to
make specifying this kind of test a little bit simpler.
llvm-svn: 214235
Diffstat (limited to 'llvm/lib/ProfileData')
-rw-r--r-- | llvm/lib/ProfileData/InstrProfReader.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ProfileData/InstrProfReader.cpp b/llvm/lib/ProfileData/InstrProfReader.cpp index 0b367282e14..e8f64614df5 100644 --- a/llvm/lib/ProfileData/InstrProfReader.cpp +++ b/llvm/lib/ProfileData/InstrProfReader.cpp @@ -83,8 +83,8 @@ void InstrProfIterator::Increment() { } std::error_code TextInstrProfReader::readNextRecord(InstrProfRecord &Record) { - // Skip empty lines. - while (!Line.is_at_end() && Line->empty()) + // Skip empty lines and comments. + while (!Line.is_at_end() && (Line->empty() || Line->startswith("#"))) ++Line; // If we hit EOF while looking for a name, we're done. if (Line.is_at_end()) |