This change relaxes the condition for a global, that is only used in "main", to be localized. This relaxation partially undoes the change done in http://reviews.llvm.org/rL253168.
This is required because the condition that was added earlier, that a store to the global needs to dominate all other references to it in the function is not necessary if the only function that accesses the global is "main". So, similar to the condition prior to the above mentioned change, this change allows "main" as an exception.