This is an archive of the discontinued LLVM Phabricator instance.

Implement /driver, /driver:wdm and /driver:uponly
ClosedPublic

Authored by ruiu on Nov 12 2019, 10:15 PM.

Event Timeline

ruiu created this revision.Nov 12 2019, 10:15 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 12 2019, 10:15 PM
thakis accepted this revision.Nov 13 2019, 12:11 AM

Looks good, some suggestions on additional things that might be interesting to check below.

Did someone ask for this, or is this just for fun / completeness? (Either's fine of course, just curious)

lld/test/COFF/driver-opt.s
4

What does link.exe do with /fixed /driver and /driver /fixed?

20

What does link.exe say to /driver:uponly,wdm ?

This revision is now accepted and ready to land.Nov 13 2019, 12:11 AM
ruiu added a comment.Nov 13 2019, 3:44 AM

Looks good, some suggestions on additional things that might be interesting to check below.

Did someone ask for this, or is this just for fun / completeness? (Either's fine of course, just curious)

I wanted to add a warning for /driver for https://bugs.llvm.org/show_bug.cgi?id=43911
and then realized that /driver is not actually implemented. So this option may not be
something that people are actively using, but as long as we are going to print out a
warning message recommending /driver, I needed to implement the option.

This revision was automatically updated to reflect the committed changes.
ruiu marked 2 inline comments as done.Nov 13 2019, 8:59 PM
ruiu added inline comments.
lld/test/COFF/driver-opt.s
20

link.exe handles it as /driver:uponly and /drivedr:wdm, so I implemented the same behavior.