projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb9ed61
)
Fix Gold Plugin after API change in the LTO API (constify callback type)
author
Mehdi Amini
<mehdi.amini@apple.com>
Mon, 22 Aug 2016 16:41:58 +0000
(16:41 +0000)
committer
Mehdi Amini
<mehdi.amini@apple.com>
Mon, 22 Aug 2016 16:41:58 +0000
(16:41 +0000)
llvm-svn: 279440
llvm/tools/gold/gold-plugin.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/gold/gold-plugin.cpp
b/llvm/tools/gold/gold-plugin.cpp
index
ee2f3f3
..
070b984
100644
(file)
--- 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)