ΒΆllvm::GlobalVariable* collectUsedGlobalVariables(
    const llvm::Module& M,
    SmallVectorImpl<llvm::GlobalValue*>& Vec,
    bool CompilerUsed)

Description

Given "llvm.used" or "llvm.compiler.used" as a global name, collect the initializer elements of that global in a SmallVector and return the global itself.

Declared at: llvm/include/llvm/IR/Module.h:967

Parameters

const llvm::Module& M
SmallVectorImpl<llvm::GlobalValue*>& Vec
bool CompilerUsed