mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
Remove unused parameter Penalty from the BoundsChecking pass.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168511 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -41,7 +41,7 @@ namespace {
|
||||
struct BoundsChecking : public FunctionPass {
|
||||
static char ID;
|
||||
|
||||
BoundsChecking(unsigned _Penalty = 5) : FunctionPass(ID), Penalty(_Penalty){
|
||||
BoundsChecking() : FunctionPass(ID) {
|
||||
initializeBoundsCheckingPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
|
||||
@@ -59,7 +59,6 @@ namespace {
|
||||
BuilderTy *Builder;
|
||||
Instruction *Inst;
|
||||
BasicBlock *TrapBB;
|
||||
unsigned Penalty;
|
||||
|
||||
BasicBlock *getTrapBB();
|
||||
void emitBranchToTrap(Value *Cmp = 0);
|
||||
@@ -208,6 +207,6 @@ bool BoundsChecking::runOnFunction(Function &F) {
|
||||
return MadeChange;
|
||||
}
|
||||
|
||||
FunctionPass *llvm::createBoundsCheckingPass(unsigned Penalty) {
|
||||
return new BoundsChecking(Penalty);
|
||||
FunctionPass *llvm::createBoundsCheckingPass() {
|
||||
return new BoundsChecking();
|
||||
}
|
||||
|
Reference in New Issue
Block a user