aboutsummaryrefslogtreecommitdiff
path: root/lib/VMCore/Instructions.cpp
diff options
context:
space:
mode:
authorGabor Greif <ggreif@gmail.com>2010-04-01 08:21:08 +0000
committerGabor Greif <ggreif@gmail.com>2010-04-01 08:21:08 +0000
commitc8b82ccbcf3b2e2384d2c0b5176e7b0b40b7f82f (patch)
treef83b4be77578085e4ad3be52f2979d0d7ba5d6c6 /lib/VMCore/Instructions.cpp
parent2d7820cb782d6f2ee74b3c9e90438229324f84cd (diff)
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
Diffstat (limited to 'lib/VMCore/Instructions.cpp')
-rw-r--r--lib/VMCore/Instructions.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/VMCore/Instructions.cpp b/lib/VMCore/Instructions.cpp
index 11e218c49e..4609a64213 100644
--- a/lib/VMCore/Instructions.cpp
+++ b/lib/VMCore/Instructions.cpp
@@ -43,11 +43,6 @@ using namespace llvm;
else \
cast<InvokeInst>(II)->METHOD
-CallSite::CallSite(Instruction *C) {
- assert((isa<CallInst>(C) || isa<InvokeInst>(C)) && "Not a call!");
- I.setPointer(C);
- I.setInt(isa<CallInst>(C));
-}
CallingConv::ID CallSite::getCallingConv() const {
CALLSITE_DELEGATE_GETTER(getCallingConv());
}