llvm::UpgradeGlobalVariable

This checks for global variables which should be upgraded. If it requires upgrading, returns a pointer to the upgraded variable.

Synopsis

Declared in <llvm/IR/AutoUpgrade.h>

GlobalVariable*
UpgradeGlobalVariable(GlobalVariable* GV);