[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)
commit603a9adf398cd62a40df1bf4fb61a5460706b988
tree7023f9360bb4bbc6aac6dbf25b8af39bd7765893
parentd9a7d837ded7b171738b53177f7277eb36b1479f
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242976 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/IPA/GlobalsModRef.cpp