[FunctionAttrs] Move the malloc-like test to a static helper function
authorChandler Carruth <chandlerc@gmail.com>
Sun, 13 Sep 2015 08:23:27 +0000 (08:23 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 13 Sep 2015 08:23:27 +0000 (08:23 +0000)
commit848219ca612e5488982f23c37c7459aeedff77e3
tree91d8a78f00d511a096116fd926f7c2dc9f552a3f
parent1f97273f8fb2e51080ef2c7a9cd867d0d0ccf8a0
[FunctionAttrs] Move the malloc-like test to a static helper function
that could be used from a new pass manager. This one makes particular
sense as a static helper as it doesn't even need TLI.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247525 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/IPO/FunctionAttrs.cpp