Introduce ImmutableCallSite, useful for contexts where no mutation
authorGabor Greif <ggreif@gmail.com>
Thu, 1 Apr 2010 08:21:08 +0000 (08:21 +0000)
committerGabor Greif <ggreif@gmail.com>
Thu, 1 Apr 2010 08:21:08 +0000 (08:21 +0000)
commitc8b82ccbcf3b2e2384d2c0b5176e7b0b40b7f82f
treef83b4be77578085e4ad3be52f2979d0d7ba5d6c6
parent2d7820cb782d6f2ee74b3c9e90438229324f84cd
Introduce ImmutableCallSite, useful for contexts where no mutation
is necessary. Inherits from new templated baseclass CallSiteBase<>
which is highly customizable. Base CallSite on it too, in a configuration
that allows full mutation.
Adapt some call sites in analyses to employ ImmutableCallSite.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@100100 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/CallSite.h
lib/Transforms/IPO/DeadArgumentElimination.cpp
lib/Transforms/IPO/GlobalOpt.cpp
lib/Transforms/Scalar/SCCP.cpp
lib/VMCore/Function.cpp
lib/VMCore/Instructions.cpp