search for: valuestolink

Displaying 4 results from an estimated 4 matches for "valuestolink".

2017 Jun 19
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...assumes ThinLTO when the LinkOnlyNeeded flags is specified, and full-LTO otherwise. To resolve this, we have locally patched llvm/lib/Linker/LinkModules.cpp with: bool ModuleLinker::run() { // .... if (shouldImportIntrinsicGlobalVariables()) { auto addIntrinsicGlobalVariable = [ValuesToLink, srcM](llvm::StringRef name) { if (GlobalValue *GV = SrcM->getGlobalVariable(name)) { ValuesToLink.insert(GV); } }; // These are added here, because they must not be internalized. addIntrinsicGlobalVariable(&qu...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...gs is specified, and full-LTO >otherwise. > >To resolve this, we have locally patched >llvm/lib/Linker/LinkModules.cpp with: > > bool ModuleLinker::run() { > > // .... > > if (shouldImportIntrinsicGlobalVariables()) { > auto addIntrinsicGlobalVariable = [ValuesToLink, > srcM](llvm::StringRef name) { > if (GlobalValue *GV = SrcM->getGlobalVariable(name)) { > ValuesToLink.insert(GV); > } > }; > > // These are added here, because they must not be internalized. >...
2017 Jun 20
2
JIT, LTO and @llvm.global_ctors: Looking for advise
...ise. >> >>To resolve this, we have locally patched >>llvm/lib/Linker/LinkModules.cpp with: >> >> bool ModuleLinker::run() { >> >> // .... >> >> if (shouldImportIntrinsicGlobalVariables()) { >> auto addIntrinsicGlobalVariable = [ValuesToLink, >> srcM](llvm::StringRef name) { >> if (GlobalValue *GV = SrcM->getGlobalVariable(name)) { >> ValuesToLink.insert(GV); >> } >> }; >> >> // These are added here, because they must n...
2016 Jul 26
4
'invalid subroutine type ref' when linking custom metadata
With 3.9, llvm-link tells me 'invalid subroutine type ref' when linking the two code pieces below, and I don't quite understand why. It looks like it merges the debug information with the custom metadata. I've filed a ticket already [1] but as I'm not sure if this is indeed a bug or if I'm misunderstanding something, I thought I'd ask here. Any ideas? Thanks, Robin