summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorMehdi Amini <mehdi.amini@apple.com>2016-08-22 16:41:58 +0000
committerMehdi Amini <mehdi.amini@apple.com>2016-08-22 16:41:58 +0000
commit6ec233313ab2d6ee1493e0f026e0703563b915c9 (patch)
tree2eeebab0b7527e04042b9d28e6f4d8b8e6d9105a /llvm
parenteb9ed6102116608b4e8cc4885eb50cedd83d57c7 (diff)
downloadbcm5719-llvm-6ec233313ab2d6ee1493e0f026e0703563b915c9.tar.gz
bcm5719-llvm-6ec233313ab2d6ee1493e0f026e0703563b915c9.zip
Fix Gold Plugin after API change in the LTO API (constify callback type)
llvm-svn: 279440
Diffstat (limited to 'llvm')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index ee2f3f33620..070b984efdb 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/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)
OpenPOWER on IntegriCloud