Skip to content

Commit 8ef3cda

Browse files
committed
[PM] Remove a failed attempt to port the CallGraph analysis to the new
pass manager. This never worked, and won't ever work. It was actually why I ended up building the LazyCallGraph set of code which is more more effectively wired up to the new pass manager. This accidentally got committed when I was trying to land a cleanup of the code organization in the other parts of this file. =[ My bad, but fortunately Dave was keen eyed enough to spot that this code couldn't possibly work. =] llvm-svn: 244127
1 parent 35869a2 commit 8ef3cda

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

llvm/include/llvm/Analysis/CallGraph.h

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -292,27 +292,6 @@ class CallGraphNode {
292292
void allReferencesDropped() { NumReferences = 0; }
293293
};
294294

295-
/// \brief An analysis pass to compute the \c CallGraph for a \c Module.
296-
///
297-
/// This class implements the concept of an analysis pass used by the \c
298-
/// ModuleAnalysisManager to run an analysis over a module and cache the
299-
/// resulting data.
300-
class CallGraphAnalysis {
301-
public:
302-
/// \brief A formulaic typedef to inform clients of the result type.
303-
typedef CallGraph Result;
304-
305-
static void *ID() { return (void *)&PassID; }
306-
307-
/// \brief Compute the \c CallGraph for the module \c M.
308-
///
309-
/// The real work here is done in the \c CallGraph constructor.
310-
CallGraph run(Module *M) { return CallGraph(*M); }
311-
312-
private:
313-
static char PassID;
314-
};
315-
316295
/// \brief The \c ModulePass which wraps up a \c CallGraph and the logic to
317296
/// build it.
318297
///

llvm/lib/Analysis/IPA/CallGraph.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,6 @@ void CallGraphNode::replaceCallEdge(CallSite CS,
252252
}
253253
}
254254

255-
//===----------------------------------------------------------------------===//
256-
// Out-of-line definitions of CallGraphAnalysis class members.
257-
//
258-
259-
char CallGraphAnalysis::PassID;
260-
261255
//===----------------------------------------------------------------------===//
262256
// Implementations of the CallGraphWrapperPass class methods.
263257
//

0 commit comments

Comments
 (0)