Search active modules for the global variable that defines Name.
Declared in <llvm/ExecutionEngine/ExecutionEngine.h>
virtual
GlobalVariable*
FindGlobalVariableNamed(
StringRef Name,
bool AllowInternal = false);
This is a very slow operation and shouldn't be used for general code.
The matching GlobalVariable, or null if not found.
| Name | Description |
|---|---|
| Name | Name of the global variable definition to find. |
| AllowInternal | If true, also consider internal linkage globals. |