From bcd425b094f25746f0f40d510b7946baf1292590 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 9 Oct 2012 05:54:39 +0000 Subject: Remove some dead methods. llvm-svn: 165485 --- llvm/lib/VMCore/Instructions.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'llvm/lib') diff --git a/llvm/lib/VMCore/Instructions.cpp b/llvm/lib/VMCore/Instructions.cpp index 1d732687236..8c3013b0bbc 100644 --- a/llvm/lib/VMCore/Instructions.cpp +++ b/llvm/lib/VMCore/Instructions.cpp @@ -456,14 +456,6 @@ bool CallInst::paramHasNoCaptureAttr(unsigned i) const { return false; } -bool CallInst::paramHasAttr(unsigned i, Attributes attr) const { - if (AttributeList.paramHasAttr(i, attr)) - return true; - if (const Function *F = getCalledFunction()) - return F->paramHasAttr(i, attr); - return false; -} - /// IsConstantOne - Return true only if val is constant int 1 static bool IsConstantOne(Value *val) { assert(val && "IsConstantOne does not work with NULL val"); @@ -790,14 +782,6 @@ bool InvokeInst::paramHasNoCaptureAttr(unsigned i) const { return false; } -bool InvokeInst::paramHasAttr(unsigned i, Attributes attr) const { - if (AttributeList.paramHasAttr(i, attr)) - return true; - if (const Function *F = getCalledFunction()) - return F->paramHasAttr(i, attr); - return false; -} - void InvokeInst::addAttribute(unsigned i, Attributes attr) { AttrListPtr PAL = getAttributes(); PAL = PAL.addAttr(i, attr); -- cgit v1.2.3