mirror of
				https://github.com/c64scene-ar/llvm-6502.git
				synced 2025-11-04 05:17:07 +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:
		@@ -157,11 +157,12 @@ public:
 | 
				
			|||||||
    return ActualCallees;
 | 
					    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));
 | 
					    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);
 | 
					    I = (Instruction*)((char*)I + 1);
 | 
				
			||||||
    return ActualCallees.lower_bound(std::pair<Instruction*,Function*>(I, 0));
 | 
					    return ActualCallees.lower_bound(std::pair<Instruction*,Function*>(I, 0));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -101,11 +101,12 @@ namespace llvm {
 | 
				
			|||||||
      return ActualCallees;
 | 
					      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));
 | 
					      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);
 | 
					      I = (Instruction*)((char*)I + 1);
 | 
				
			||||||
      return ActualCallees.lower_bound(std::pair<Instruction*,Function*>(I, 0));
 | 
					      return ActualCallees.lower_bound(std::pair<Instruction*,Function*>(I, 0));
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user