[GMR] Further improve the FunctionInfo API inside of GlobalsModRef, NFC.
authorChandler Carruth <chandlerc@gmail.com>
Thu, 23 Jul 2015 00:12:32 +0000 (00:12 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Thu, 23 Jul 2015 00:12:32 +0000 (00:12 +0000)
commitdbb4622ce39e2f4d060c4006dec1cf826acc297b
tree70b0b0351a3ab430d38535ac6b4e20ff83aff770
parent4f03227fa2d921b15b6654408280a0c61ede0116
[GMR] Further improve the FunctionInfo API inside of GlobalsModRef, NFC.

This takes the operation of merging a callee's information into the
current information and embeds it into the FunctionInfo type itself.
This is much cleaner as now we don't need to expose iteration of the
globals, etc.

Also, switched all the uses of a raw integer two maintain the mod/ref
info during the SCC walk into just directly manipulating it in the
FunctionInfo object.

llvm-svn: 242976
llvm/lib/Analysis/IPA/GlobalsModRef.cpp