mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-03 14:21:30 +00:00
Remove some dead methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165485 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user