Create or update the magic "llvm.compiler_used" global in a module.
Declared in <llvm/LTO/legacy/UpdateCompilerUsed.h>
void
updateCompilerUsed(
Module& TheModule,
TargetMachine const& TM,
StringSet<> const& AsmUndefinedRefs);
Find all globals in TheModule that are referenced in AsmUndefinedRefs, as well as the user-supplied functions definitions that are also libcalls, and create or update the magic "llvm.compiler_used" global in TheModule.
| Name | Description |
|---|---|
| TheModule | Module whose llvm.compiler_used global is created or updated. |
| TM | Target machine used to identify libcalls and mangle symbol names. |
| AsmUndefinedRefs | Set of mangled symbol names referenced from assembly. |