llvm::ExecutionEngine::FindGlobalVariableNamed

Search active modules for the global variable that defines Name.

Synopsis

Declared in <llvm/ExecutionEngine/ExecutionEngine.h>

virtual
GlobalVariable*
FindGlobalVariableNamed(
    StringRef Name,
    bool AllowInternal = false);

Description

This is a very slow operation and shouldn't be used for general code.

Return Value

The matching GlobalVariable, or null if not found.

Parameters

NameDescription
NameName of the global variable definition to find.
AllowInternalIf true, also consider internal linkage globals.