llvm::ExecutionEngine::getPointerToGlobalIfAvailable

getPointerToGlobalIfAvailable overloads

Synopses

Declared in <llvm/ExecutionEngine/ExecutionEngine.h>

Return a pointer to a global if it has already been codegen'd.

void*
getPointerToGlobalIfAvailable(StringRef S);
» more...

Return a pointer to a global value if it has already been codegen'd.

void*
getPointerToGlobalIfAvailable(GlobalValue const* GV);
» more...

Return Value

  • Host pointer to the global if available, otherwise null.
  • Host pointer to GV if available, otherwise null.

Parameters

NameDescription
SMangled symbol name to look up.
GVGlobal value to look up.