This is an archive of the discontinued LLVM Phabricator instance.

[ms] [llvm-ml] Handle OPTION PROLOGUE/EPILOGUE:NONE
ClosedPublic

Authored by epastor on Aug 9 2022, 2:18 PM.

Details

Summary

Since we don't yet implement PROC's PROLOGUE and EPILOGUE support, we can safely ignore the option that disables them.

Diff Detail

Event Timeline

epastor created this revision.Aug 9 2022, 2:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2022, 2:18 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
epastor requested review of this revision.Aug 9 2022, 2:18 PM
Herald added a project: Restricted Project. · View Herald TranscriptAug 9 2022, 2:18 PM
epastor updated this revision to Diff 451487.Aug 10 2022, 8:33 AM

Add simple test

thakis accepted this revision.Aug 10 2022, 8:37 AM

Thanks!

llvm/lib/MC/MCParser/COFFMasmParser.cpp
422

nit: no else after return

425

nit: no else after return

433

nit: no else after return

436

nit: no else after return

llvm/test/tools/llvm-ml/option_prologue_epilogue_none.asm
4

nit: maybe pRoLoGuE:nOnE and EPILogue:None to test case insensitivity too?

This revision is now accepted and ready to land.Aug 10 2022, 8:37 AM
epastor updated this revision to Diff 451489.Aug 10 2022, 8:38 AM

Fixing test

epastor updated this revision to Diff 451492.Aug 10 2022, 8:41 AM

Address nits

epastor marked 5 inline comments as done.Aug 10 2022, 8:41 AM
thakis added inline comments.Aug 10 2022, 8:47 AM
llvm/lib/MC/MCParser/COFFMasmParser.cpp
424

no else after return here either

epastor updated this revision to Diff 451508.Aug 10 2022, 8:52 AM

Fix remaining nit

epastor marked an inline comment as done.Aug 10 2022, 8:53 AM
thakis accepted this revision.Aug 10 2022, 8:55 AM

Ship it :)

This revision was automatically updated to reflect the committed changes.