This checks for module flags which should be upgraded. It returns true if module is modified.
Declared in <llvm/IR/AutoUpgrade.h>
<llvm/IR/AutoUpgrade.h>
bool UpgradeModuleFlags(Module& M);
true if the module was modified.