ΒΆvoid updateCompilerUsed(
    llvm::Module& TheModule,
    const llvm::TargetMachine& TM,
    const StringSet<>& AsmUndefinedRefs)

Description

Find all globals in \p TheModule that are referenced in\p AsmUndefinedRefs, as well as the user-supplied functions definitions that are also libcalls, and create or update the magic "llvm.compiler_used" global in \p TheModule.

Declared at: llvm/include/llvm/LTO/legacy/UpdateCompilerUsed.h:27

Parameters

llvm::Module& TheModule
const llvm::TargetMachine& TM
const StringSet<>& AsmUndefinedRefs