From 4457f7ea469d89353e353d534098790e8f106be9 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 1 Nov 2004 21:07:05 +0000 Subject: [PATCH] Remove more dead methods git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17413 91177308-0d34-0410-b5e6-96231b3b80d8 --- .../Analysis/DataStructure/EquivClassGraphs.h | 19 ------------------- .../DataStructure/EquivClassGraphs.cpp | 5 ++--- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h index 94e250d188a..a634ce3f8ac 100644 --- a/include/llvm/Analysis/DataStructure/EquivClassGraphs.h +++ b/include/llvm/Analysis/DataStructure/EquivClassGraphs.h @@ -76,21 +76,6 @@ namespace PA { /// 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& getEquivClassForCallSite(const CallSite& CS) { - Function* leaderF = FuncECs.findClass(getSomeCalleeForCallSite(CS)); - return FuncECs.getEqClass(leaderF); - } - DSGraph &getGlobalsGraph() const { return *GlobalsGraph; } @@ -105,10 +90,6 @@ namespace PA { AU.addRequired(); } - /// print - Print out the analysis results... - /// - void print(std::ostream &O, const Module *M) const {} - private: void buildIndirectFunctionSets(Module &M); diff --git a/lib/Analysis/DataStructure/EquivClassGraphs.cpp b/lib/Analysis/DataStructure/EquivClassGraphs.cpp index 70c8f6bb479..d066fc273e1 100644 --- a/lib/Analysis/DataStructure/EquivClassGraphs.cpp +++ b/lib/Analysis/DataStructure/EquivClassGraphs.cpp @@ -56,13 +56,12 @@ static void CheckAllGraphs(Module *M, GT &ECGraphs) { } #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::const_iterator I =