This is an archive of the discontinued LLVM Phabricator instance.

[LTO] Move DisableVerify setting to LTOCodeGenerator class (NFC).
ClosedPublic

Authored by fhahn on Jan 22 2021, 5:07 AM.

Details

Summary

To simplify the transition to using LTOBackend, move DisableVerify to
the LTOCodeGenerator class, like most/all other options.

Diff Detail

Event Timeline

fhahn created this revision.Jan 22 2021, 5:07 AM
fhahn requested review of this revision.Jan 22 2021, 5:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 22 2021, 5:07 AM
tejohnson accepted this revision.Jan 22 2021, 12:10 PM

lgtm with one suggestion below.

llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
244

Nit - I would say make this false by default (similar to the option in llvm-lto). While it presumably should always get set by clients, false seems like a good conservative default.

This revision is now accepted and ready to land.Jan 22 2021, 12:10 PM
This revision was landed with ongoing or failed builds.Jan 24 2021, 6:15 AM
This revision was automatically updated to reflect the committed changes.
fhahn added inline comments.Jan 24 2021, 6:17 AM
llvm/include/llvm/LTO/legacy/LTOCodeGenerator.h
244

That sounds like a great idea, adjusted the default in the committed version, thanks!