mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-26 06:04:47 +00:00
Fix Gold Plugin after API change in the LTO API (constify callback type)
llvm-svn: 279440
This commit is contained in:
parent
53bc9e3773
commit
3b4a327055
@ -727,11 +727,11 @@ static std::unique_ptr<LTO> createLTO() {
|
||||
break;
|
||||
|
||||
case options::OT_DISABLE:
|
||||
Conf.PreOptModuleHook = [](size_t Task, Module &M) { return false; };
|
||||
Conf.PreOptModuleHook = [](size_t Task, const Module &M) { return false; };
|
||||
break;
|
||||
|
||||
case options::OT_BC_ONLY:
|
||||
Conf.PostInternalizeModuleHook = [](size_t Task, Module &M) {
|
||||
Conf.PostInternalizeModuleHook = [](size_t Task, const Module &M) {
|
||||
std::error_code EC;
|
||||
raw_fd_ostream OS(output_name, EC, sys::fs::OpenFlags::F_None);
|
||||
if (EC)
|
||||
|
Loading…
x
Reference in New Issue
Block a user