Fix Gold Plugin after API change in the LTO API (constify callback type)

llvm-svn: 279440
This commit is contained in:
Mehdi Amini 2016-08-22 16:41:58 +00:00
parent eb9ed61021
commit 6ec233313a
1 changed files with 2 additions and 2 deletions

View File

@ -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)