llvm.org GIT mirror llvm / 5636eec
s/Meth/F git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8244 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 16 years ago
1 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
103103 // Functions to keep a call graph up to date with a function that has been
104104 // modified
105105 //
106 void addFunctionToModule(Function *Meth);
106 void addFunctionToModule(Function *F);
107107
108108
109109 // removeFunctionFromModule - Unlink the function from this module, returning
113113 // is to dropAllReferences before calling this.
114114 //
115115 Function *removeFunctionFromModule(CallGraphNode *CGN);
116 Function *removeFunctionFromModule(Function *Meth) {
117 return removeFunctionFromModule((*this)[Meth]);
116 Function *removeFunctionFromModule(Function *F) {
117 return removeFunctionFromModule((*this)[F]);
118118 }
119119
120120
167167 // CallGraphNode class definition
168168 //
169169 class CallGraphNode {
170 Function *Meth;
170 Function *F;
171171 std::vector CalledFunctions;
172172
173173 CallGraphNode(const CallGraphNode &); // Do not implement
180180 typedef std::vector::const_iterator const_iterator;
181181
182182 // getFunction - Return the function that this call graph node represents...
183 Function *getFunction() const { return Meth; }
183 Function *getFunction() const { return F; }
184184
185185 inline iterator begin() { return CalledFunctions.begin(); }
186186 inline iterator end() { return CalledFunctions.end(); }
206206 friend class CallGraph;
207207
208208 // CallGraphNode ctor - Create a node for the specified function...
209 inline CallGraphNode(Function *F) : Meth(F) {}
209 inline CallGraphNode(Function *f) : F(f) {}
210210
211211 // addCalledFunction add a function to the list of functions called by this
212212 // one