Fixed several asm-related error message formats.

This commit is contained in:
David Nadlinger
2012-08-31 01:58:54 +02:00
parent 7a162b6f6d
commit 6fea7358dc
4 changed files with 4 additions and 4 deletions

View File

@@ -5443,7 +5443,7 @@ int AsmStatement::comeFrom()
int AsmStatement::blockExit(bool mustNotThrow)
{
if (mustNotThrow)
error("asm statements are assumed to throw", toChars());
error("asm statements are assumed to throw");
// Assume the worst
return BEfallthru | BEthrow | BEreturn | BEgoto | BEhalt;
}

View File

@@ -2189,7 +2189,7 @@ namespace AsmParserx8632
*/
if ( isDollar ( e ) )
{
error ( "dollar labels are not supported", stmt->loc.toChars() );
stmt->error("dollar labels are not supported");
asmcode->dollarLabel = 1;
}
else if ( e->op == TOKdsymbol )

View File

@@ -2325,7 +2325,7 @@ namespace AsmParserx8664
*/
if ( isDollar ( e ) )
{
error ( "dollar labels are not supported", stmt->loc.toChars() );
stmt->error("dollar labels are not supported");
asmcode->dollarLabel = 1;
}
else if ( e->op == TOKdsymbol )

View File

@@ -187,7 +187,7 @@ int AsmStatement::blockExit(bool mustNotThrow)
//printf("AsmStatement::blockExit(%p)\n", this);
#if DMDV2
if (mustNotThrow)
error("asm statements are assumed to throw", toChars());
error("asm statements are assumed to throw");
#endif
// Assume the worst
return BEfallthru | BEthrow | BEreturn | BEgoto | BEhalt;