diff options
author | root <root@rshg054.dnsready.net> | 2012-12-31 01:32:52 -0800 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-12-31 01:32:52 -0800 |
commit | f503701b04bfc3fbec13acce2abfa9e8df56d2c0 (patch) | |
tree | 33bd1091aa34d345417508caf21775abea68437c /extra/llvm/enable-lto.patch | |
parent | 0af0753417e7e506da08650bda80804d0b50e660 (diff) |
Mon Dec 31 01:32:43 PST 2012
Diffstat (limited to 'extra/llvm/enable-lto.patch')
-rw-r--r-- | extra/llvm/enable-lto.patch | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/extra/llvm/enable-lto.patch b/extra/llvm/enable-lto.patch index 3205fbf69..9f43e657e 100644 --- a/extra/llvm/enable-lto.patch +++ b/extra/llvm/enable-lto.patch @@ -19,14 +19,12 @@ Index: lib/Driver/Tools.cpp // Tell the linker to load the plugin. This has to come before AddLinkerInputs // as gold requires -plugin to come before any -plugin-opt that -Wl might // forward. -- if (D.IsUsingLTO(Args) || Args.hasArg(options::OPT_use_gold_plugin)) { -+ // if (D.IsUsingLTO(Args) || Args.hasArg(options::OPT_use_gold_plugin)) { + if (D.IsUsingLTO(Args) || Args.hasArg(options::OPT_use_gold_plugin)) { CmdArgs.push_back("-plugin"); - std::string Plugin = ToolChain.getDriver().Dir + "/../lib/LLVMgold.so"; + std::string Plugin = ToolChain.getDriver().Dir + "/../lib/llvm/LLVMgold.so"; CmdArgs.push_back(Args.MakeArgString(Plugin)); -- } -+ // } + } AddLinkerInputs(ToolChain, Inputs, Args, CmdArgs); } |