This is an archive of the discontinued LLVM Phabricator instance.

[SystemZ][z/OS] Validate symbol names for z/OS for printing without quotes
ClosedPublic

Authored by anirudhp on May 25 2021, 8:41 AM.

Details

Summary
  • Currently, before printing a label in MCSymbol.cpp (MCSymbol::print), the current code "validates" the label that is to be printed.
  • If it fails the validation step, then it prints the label within double quotes.
  • However, the validation is provided as a virtual function in MCAsmInfo.h (i.e. isAcceptableChar() function). So we can override this for the AD_HLASM dialect in SystemZMCAsmInfo.cpp.

Diff Detail

Event Timeline

anirudhp created this revision.May 25 2021, 8:41 AM
anirudhp requested review of this revision.May 25 2021, 8:41 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 25 2021, 8:41 AM
uweigand accepted this revision.May 25 2021, 8:52 AM

LGTM, thanks.

This revision is now accepted and ready to land.May 25 2021, 8:52 AM
anirudhp updated this revision to Diff 347717.May 25 2021, 10:07 AM
  • Rebase on latest.