search for: shouldlinkonlyneeded

Displaying 2 results from an estimated 2 matches for "shouldlinkonlyneeded".

2016 Apr 20
2
Lazily Loaded Modules and Linker::LinkOnlyNeeded
...ions that weren't used. So I tried it, and it failed. Basically any function that was still to be materialized wasn't getting its body copied over during linking. The only line of code that differs when you set LinkOnlyNeeded is in LinkModules.cpp -> ModuleLinker::linkIfNeeded: if (shouldLinkOnlyNeeded() && !(DGV && DGV->isDeclaration())) return false; The isDeclaration() for functions has a call to isMaterializable(). Things I've tried: * If I don't pass LinkOnlyNeeded but still link from the lazily loaded runtime module into the user module, it works (a...
2016 Apr 20
2
Lazily Loaded Modules and Linker::LinkOnlyNeeded
...gt; So I tried it, and it failed. Basically any function that was still to be > materialized wasn't getting its body copied over during linking. > > The only line of code that differs when you set LinkOnlyNeeded is in > LinkModules.cpp -> ModuleLinker::linkIfNeeded: > > if (shouldLinkOnlyNeeded() && !(DGV && DGV->isDeclaration())) > return false; > > > The isDeclaration() for functions has a call to isMaterializable(). > > Things I've tried: > > - If I don't pass LinkOnlyNeeded but still link from the lazily loaded > runtime...