Make variables and text-macro references case-insensitive, to match ml.exe.
Also improve error handling for text-macro expansion.
Paths
| Differential D92503
[ms] [llvm-ml] Fix case-sensitivity for variables and textmacros ClosedPublic Authored by epastor on Dec 2 2020, 1:03 PM.
Details Summary Make variables and text-macro references case-insensitive, to match ml.exe. Also improve error handling for text-macro expansion.
Diff Detail
Unit TestsFailed
Event Timelineepastor added a child revision: D92504: [ms] [llvm-ml] Accept /WX to signal that warnings should be fatal..Dec 2 2020, 1:05 PM
Comment Actions (marking "request changes" just so it disappears form my dashboard and can reappear once you've answered -- doesn't necessarily need changes) This revision now requires changes to proceed.Dec 3 2020, 6:53 AM Comment Actions Improve comments to clarify the change
This revision is now accepted and ready to land.Apr 2 2021, 8:13 AM This revision was landed with ongoing or failed builds.Apr 2 2021, 11:08 AM Closed by commit rG15ec0ad77ae3: [ms] [llvm-ml] Fix case-sensitivity for variables and textmacros (authored by epastor). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 330807 llvm/lib/MC/MCParser/MasmParser.cpp
llvm/test/tools/llvm-ml/variable.asm
|
This looks up a label, and if that fails, tries to look up a var with the same (lowered) name. Is that intentional? If so, could you mention that in the patch summary? As far as I understand, this change is unrelated to what's currently in the description.
Same with the Unlex changes below which I'm guessing are related to this change here.
I understand all the .lower() changes in the diff, I think I understand the test, but I don't get why the rest is changing yet.