ΒΆvoid moveGlobalVariableInitializer(
    llvm::GlobalVariable& OrigGV,
    llvm::ValueToValueMapTy& VMap,
    llvm::ValueMaterializer* Materializer =
        nullptr,
    llvm::GlobalVariable* NewGV = nullptr)

Description

Move global variable GV from its parent module to cloned global declaration in a different module. If the target global declaration is not supplied via the NewGV parameter then it will be looked up via the VMap. This will delete the initializer of GV from its original parent module, but leave its declaration.

Declared at: llvm/include/llvm/ExecutionEngine/Orc/IndirectionUtils.h:554

Parameters

llvm::GlobalVariable& OrigGV
llvm::ValueToValueMapTy& VMap
llvm::ValueMaterializer* Materializer = nullptr
llvm::GlobalVariable* NewGV = nullptr