[PATCH] D137971: [COFF, Mach-O] Include -mllvm options in thinlto cache key

Nico Weber via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 14 11:26:37 PST 2022


thakis created this revision.
thakis added a reviewer: hans.
Herald added subscribers: ormris, steven_wu, hiraditya, arichardson, inglorion, emaste.
Herald added a reviewer: MaskRay.
Herald added projects: lld-macho, All.
Herald added a reviewer: lld-macho.
thakis requested review of this revision.
Herald added a subscriber: StephenFan.

Like D134013 <https://reviews.llvm.org/D134013>, but for COFF and Mach-O.

Also expand the ELF test a bit. I at first didn't realize that `getValue()` for
`-mllvm -foo=bar` would return `-foo=bar` instead of just `bar`, and so
I wrote the test to check if we indeed get this wrong. We don't, but
having the test for it seems nice, so I'm including it.


https://reviews.llvm.org/D137971

Files:
  lld/COFF/Config.h
  lld/COFF/Driver.cpp
  lld/COFF/LTO.cpp
  lld/ELF/Driver.cpp
  lld/MachO/Config.h
  lld/MachO/Driver.cpp
  lld/MachO/LTO.cpp
  lld/test/COFF/lto-cache.ll
  lld/test/ELF/lto/cache.ll
  lld/test/MachO/lto-cache.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137971.475223.patch
Type: text/x-patch
Size: 10934 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221114/3b5a8bc6/attachment-0001.bin>


More information about the llvm-commits mailing list