This is an archive of the discontinued LLVM Phabricator instance.

[ms] [llvm-ml] Allow arbitrary strings as integer constants
ClosedPublic

Authored by epastor on Nov 4 2020, 12:56 PM.

Details

Summary

MASM interprets strings in expression contexts as integers expressed in big-endian base-256, treating each character as its ASCII representation.

This completely eliminates the need to special-case single-character strings.

Diff Detail

Event Timeline

epastor created this revision.Nov 4 2020, 12:56 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2020, 12:56 PM
epastor requested review of this revision.Nov 4 2020, 12:56 PM
thakis accepted this revision.Nov 5 2020, 12:36 PM
This revision is now accepted and ready to land.Nov 5 2020, 12:36 PM
This revision was landed with ongoing or failed builds.Nov 6 2020, 2:16 PM
This revision was automatically updated to reflect the committed changes.