[llvm-commits] CVS: poolalloc/lib/PoolAllocate/EquivClassGraphs.cpp EquivClassGraphs.h
Chris Lattner
lattner at cs.uiuc.edu
Mon Nov 1 13:07:15 PST 2004
Changes in directory poolalloc/lib/PoolAllocate:
EquivClassGraphs.cpp updated: 1.12 -> 1.13
EquivClassGraphs.h updated: 1.11 -> 1.12
---
Log message:
Remove more dead methods
---
Diffs of the changes: (+2 -22)
Index: poolalloc/lib/PoolAllocate/EquivClassGraphs.cpp
diff -u poolalloc/lib/PoolAllocate/EquivClassGraphs.cpp:1.12 poolalloc/lib/PoolAllocate/EquivClassGraphs.cpp:1.13
--- poolalloc/lib/PoolAllocate/EquivClassGraphs.cpp:1.12 Mon Nov 1 15:02:23 2004
+++ poolalloc/lib/PoolAllocate/EquivClassGraphs.cpp Mon Nov 1 15:07:05 2004
@@ -56,13 +56,12 @@
}
#endif
-// getDSGraphForCallSite - Return the common data structure graph for
-// callees at the specified call site.
+// getSomeCalleeForCallSite - Return any one callee function at a call site.
//
Function *PA::EquivClassGraphs::
getSomeCalleeForCallSite(const CallSite &CS) const {
Function *thisFunc = CS.getCaller();
- assert(thisFunc && "getDSGraphForCallSite(): Not a valid call site?");
+ assert(thisFunc && "getSomeCalleeForCallSite(): Not a valid call site?");
DSGraph &DSG = getDSGraph(*thisFunc);
DSNode *calleeNode = DSG.getNodeForValue(CS.getCalledValue()).getNode();
std::map<DSNode*, Function *>::const_iterator I =
Index: poolalloc/lib/PoolAllocate/EquivClassGraphs.h
diff -u poolalloc/lib/PoolAllocate/EquivClassGraphs.h:1.11 poolalloc/lib/PoolAllocate/EquivClassGraphs.h:1.12
--- poolalloc/lib/PoolAllocate/EquivClassGraphs.h:1.11 Mon Nov 1 15:04:47 2004
+++ poolalloc/lib/PoolAllocate/EquivClassGraphs.h Mon Nov 1 15:07:05 2004
@@ -76,21 +76,6 @@
///
Function *getSomeCalleeForCallSite(const CallSite &CS) const;
- /// getDSGraphForCallSite - Return the common data structure graph for
- /// callees at the specified call site.
- ///
- DSGraph &getDSGraphForCallSite(const CallSite &CS) const {
- return this->getDSGraph(*getSomeCalleeForCallSite(CS));
- }
-
- /// getEquivClassForCallSite - Get the set of functions in the equivalence
- /// class for a given call site.
- ///
- const std::set<Function*>& getEquivClassForCallSite(const CallSite& CS) {
- Function* leaderF = FuncECs.findClass(getSomeCalleeForCallSite(CS));
- return FuncECs.getEqClass(leaderF);
- }
-
DSGraph &getGlobalsGraph() const {
return *GlobalsGraph;
}
@@ -105,10 +90,6 @@
AU.addRequired<CompleteBUDataStructures>();
}
- /// print - Print out the analysis results...
- ///
- void print(std::ostream &O, const Module *M) const {}
-
private:
void buildIndirectFunctionSets(Module &M);
More information about the llvm-commits
mailing list