mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Fixed several asm-related error message formats.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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 )
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user