diff options
author | Mehdi Amini <mehdi.amini@apple.com> | 2016-08-22 16:41:58 +0000 |
---|---|---|
committer | Mehdi Amini <mehdi.amini@apple.com> | 2016-08-22 16:41:58 +0000 |
commit | b41bec082243bd07227ce1408b4539b6e2155056 (patch) | |
tree | a106af0a4fb3504610b0171df906321c2fe86ac7 /tools/gold | |
parent | b469a386bbf96322b88454fb7867c27dc6855a06 (diff) |
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
Diffstat (limited to 'tools/gold')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index ee2f3f33620b..070b984efdb2 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -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) |