[PATCH] D61067: lld-link: Implement /swaprun: flag

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 24 07:18:13 PDT 2019


thakis created this revision.
thakis added a reviewer: ruiu.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.
thakis updated this revision to Diff 196448.
thakis added a comment.

attach the right diff file


r191276 added this to old LLD, but it never made it to new LLD -- except that the flag was in Options.td, so it was silently ignored. I figured it should be easy to implement, so I did that instead of removing the flags from Options.td.

I then discovered that link.exe also supports comma-separated lists of 'cd' and 'net', which made the parsing code a bit annoying.

The Alias technique in Options.td is to get nice help output.


https://reviews.llvm.org/D61067

Files:
  lld/COFF/Config.h
  lld/COFF/Driver.cpp
  lld/COFF/Driver.h
  lld/COFF/DriverUtils.cpp
  lld/COFF/Options.td
  lld/COFF/Writer.cpp
  lld/test/COFF/options.test

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D61067.196448.patch
Type: text/x-patch
Size: 6328 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190424/eddfc911/attachment.bin>


More information about the llvm-commits mailing list