mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-25 05:22:04 +00:00
Another sentinel optimization. This one should always
be a win, since almost every interesting function has at least one Argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65778 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -26,13 +26,6 @@ iplist<BasicBlock> &ilist_traits<BasicBlock>::getList(Function *F) {
|
||||
return F->getBasicBlockList();
|
||||
}
|
||||
|
||||
Argument *ilist_traits<Argument>::createSentinel() {
|
||||
Argument *Ret = new Argument(Type::Int32Ty);
|
||||
// This should not be garbage monitored.
|
||||
LeakDetector::removeGarbageObject(Ret);
|
||||
return Ret;
|
||||
}
|
||||
|
||||
iplist<Argument> &ilist_traits<Argument>::getList(Function *F) {
|
||||
return F->getArgumentList();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user