llvm.org GIT mirror llvm / b41bec0
Fix Gold Plugin after API change in the LTO API (constify callback type) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279440 91177308-0d34-0410-b5e6-96231b3b80d8 Mehdi Amini 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
726726 break;
727727
728728 case options::OT_DISABLE:
729 Conf.PreOptModuleHook = [](size_t Task, Module &M) { return false; };
729 Conf.PreOptModuleHook = [](size_t Task, const Module &M) { return false; };
730730 break;
731731
732732 case options::OT_BC_ONLY:
733 Conf.PostInternalizeModuleHook = [](size_t Task, Module &M) {
733 Conf.PostInternalizeModuleHook = [](size_t Task, const Module &M) {
734734 std::error_code EC;
735735 raw_fd_ostream OS(output_name, EC, sys::fs::OpenFlags::F_None);
736736 if (EC)