mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-03 11:24:18 +00:00
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214235 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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())
|
||||
|
Reference in New Issue
Block a user