mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
add and use a callee_iterator typedef
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21037 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
021decc82d
commit
da7c380eb4
@ -157,11 +157,12 @@ public:
|
||||
return ActualCallees;
|
||||
}
|
||||
|
||||
ActualCalleesTy::iterator callee_begin(Instruction *I) const {
|
||||
typedef ActualCalleesTy::const_iterator callee_iterator;
|
||||
callee_iterator callee_begin(Instruction *I) const {
|
||||
return ActualCallees.lower_bound(std::pair<Instruction*,Function*>(I, 0));
|
||||
}
|
||||
|
||||
ActualCalleesTy::iterator callee_end(Instruction *I) const {
|
||||
callee_iterator callee_end(Instruction *I) const {
|
||||
I = (Instruction*)((char*)I + 1);
|
||||
return ActualCallees.lower_bound(std::pair<Instruction*,Function*>(I, 0));
|
||||
}
|
||||
|
@ -100,12 +100,13 @@ namespace llvm {
|
||||
const ActualCalleesTy &getActualCallees() const {
|
||||
return ActualCallees;
|
||||
}
|
||||
|
||||
ActualCalleesTy::iterator callee_begin(Instruction *I) const {
|
||||
|
||||
typedef ActualCalleesTy::const_iterator callee_iterator;
|
||||
callee_iterator callee_begin(Instruction *I) const {
|
||||
return ActualCallees.lower_bound(std::pair<Instruction*,Function*>(I, 0));
|
||||
}
|
||||
|
||||
ActualCalleesTy::iterator callee_end(Instruction *I) const {
|
||||
callee_iterator callee_end(Instruction *I) const {
|
||||
I = (Instruction*)((char*)I + 1);
|
||||
return ActualCallees.lower_bound(std::pair<Instruction*,Function*>(I, 0));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user