mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-10-02 21:17:17 +00:00
Remove more dead methods
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17413 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -76,21 +76,6 @@ namespace PA {
|
|||||||
///
|
///
|
||||||
Function *getSomeCalleeForCallSite(const CallSite &CS) const;
|
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 {
|
DSGraph &getGlobalsGraph() const {
|
||||||
return *GlobalsGraph;
|
return *GlobalsGraph;
|
||||||
}
|
}
|
||||||
@@ -105,10 +90,6 @@ namespace PA {
|
|||||||
AU.addRequired<CompleteBUDataStructures>();
|
AU.addRequired<CompleteBUDataStructures>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// print - Print out the analysis results...
|
|
||||||
///
|
|
||||||
void print(std::ostream &O, const Module *M) const {}
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void buildIndirectFunctionSets(Module &M);
|
void buildIndirectFunctionSets(Module &M);
|
||||||
|
|
||||||
|
@@ -56,13 +56,12 @@ static void CheckAllGraphs(Module *M, GT &ECGraphs) {
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// getDSGraphForCallSite - Return the common data structure graph for
|
// getSomeCalleeForCallSite - Return any one callee function at a call site.
|
||||||
// callees at the specified call site.
|
|
||||||
//
|
//
|
||||||
Function *PA::EquivClassGraphs::
|
Function *PA::EquivClassGraphs::
|
||||||
getSomeCalleeForCallSite(const CallSite &CS) const {
|
getSomeCalleeForCallSite(const CallSite &CS) const {
|
||||||
Function *thisFunc = CS.getCaller();
|
Function *thisFunc = CS.getCaller();
|
||||||
assert(thisFunc && "getDSGraphForCallSite(): Not a valid call site?");
|
assert(thisFunc && "getSomeCalleeForCallSite(): Not a valid call site?");
|
||||||
DSGraph &DSG = getDSGraph(*thisFunc);
|
DSGraph &DSG = getDSGraph(*thisFunc);
|
||||||
DSNode *calleeNode = DSG.getNodeForValue(CS.getCalledValue()).getNode();
|
DSNode *calleeNode = DSG.getNodeForValue(CS.getCalledValue()).getNode();
|
||||||
std::map<DSNode*, Function *>::const_iterator I =
|
std::map<DSNode*, Function *>::const_iterator I =
|
||||||
|
Reference in New Issue
Block a user