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

Description

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

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

Parameters

const llvm::Module& M
SmallPtrSetImpl<llvm::GlobalValue*>& Set
bool CompilerUsed