This is an archive of the discontinued LLVM Phabricator instance.

[ms] [llvm-ml] Make variable redefinition match ML.EXE
ClosedPublic

Authored by epastor on Jun 9 2021, 3:52 PM.

Details

Summary

MASM specifies that all variable definitions are redefinable, except for EQU definitions to expressions. (TEXTEQU is unspecified, but appears to be fully redefinable as well.)

Also, in practice, ML.EXE allows redefinitions where the value doesn't change.

Make variable redefinition possible for text macros, suppressing expansion if written as the first argument to an EQU or TEXTEQU directive.

Diff Detail