OSDN Git Service

Add a simple pass to make sure that all (non-library) calls to malloc and free
authorAndrew Lenharth <andrewl@lenharth.org>
Mon, 10 Apr 2006 19:26:09 +0000 (19:26 +0000)
committerAndrew Lenharth <andrewl@lenharth.org>
Mon, 10 Apr 2006 19:26:09 +0000 (19:26 +0000)
commit3433141a3e5cae22f79019f52b624d0f384018a7
treeb67a07fb8b13f39413049c37b5659557099a9a3d
parentdb3c626eb9e85e9192dbee59ff0c4d143c37c94d
Add a simple pass to make sure that all (non-library) calls to malloc and free
are visible to analysis as intrinsics.  That is, make sure someone doesn't pass
free around by address in some struct (as happens in say 176.gcc).

This doesn't get rid of any indirect calls, just ensure calls to free and malloc
are always direct.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27560 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/IPO.h
include/llvm/Transforms/LinkAllPasses.h
lib/Transforms/IPO/IndMemRemoval.cpp [new file with mode: 0644]