Skip to content

Commit

Permalink
bit more in ifelse
Browse files Browse the repository at this point in the history
  • Loading branch information
partouf committed Apr 14, 2021
1 parent 61d4639 commit b52dc75
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/assembly/parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -447,17 +447,19 @@ void AsmParser::AssemblyTextParser::eol()
else if (!this->state.currentLine.is_label && !this->state.currentLine.is_data)
{
if (!handledSourceDirective)
this->state.currentLine.is_directive = AssemblyTextParserUtils::isDirective(filteredLine);

// .inst generates an opcode, so does not count as a directive
if (this->state.currentLine.is_directive && !AssemblyTextParserUtils::isInstOpcode(filteredLine))
{
this->extractUsedLabelsFromDirective(filteredLine);
this->state.currentLine.is_directive = AssemblyTextParserUtils::isDirective(filteredLine);

if (this->filter.directives)
// .inst generates an opcode, so does not count as a directive
if (this->state.currentLine.is_directive && !AssemblyTextParserUtils::isInstOpcode(filteredLine))
{
this->state.text.clear();
return;
this->extractUsedLabelsFromDirective(filteredLine);

if (this->filter.directives)
{
this->state.text.clear();
return;
}
}
}
}
Expand Down

0 comments on commit b52dc75

Please sign in to comment.