mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-09 05:13:01 +00:00
add and use a callee_iterator typedef
llvm-svn: 21037
This commit is contained in:
parent
23ef46ddca
commit
8b753bbfd9
@ -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