This checks for global variables which should be upgraded. If it requires upgrading, returns a pointer to the upgraded variable.
Declared in <llvm/IR/AutoUpgrade.h>
<llvm/IR/AutoUpgrade.h>
GlobalVariable* UpgradeGlobalVariable(GlobalVariable* GV);