HomePhabricator

[LTO] Constify lto::Config reference passed to backends (NFC)

Authored by tejohnson on Jan 13 2020, 12:23 PM.

Description

[LTO] Constify lto::Config reference passed to backends (NFC)

The lto::Config object saved on the global LTO object should not be
updated by any of the LTO backends. Otherwise we could run into
interference between threads utilizing it. Motivated by some proposed
changes that would have caused it to get modified in the ThinLTO
backends.

Details

Committed
tejohnsonJan 13 2020, 12:26 PM
Parents
rGa0f4600f4f0e: Rework be15dfa88fb1 such that it works with GlobalISel which doesn't use EVT
Branches
Unknown
Tags
Unknown