[PM] Remove a failed attempt to port the CallGraph analysis to the new
authorChandler Carruth <chandlerc@gmail.com>
Wed, 5 Aug 2015 21:04:31 +0000 (21:04 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 5 Aug 2015 21:04:31 +0000 (21:04 +0000)
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. =]

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@244127 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/CallGraph.h
lib/Analysis/IPA/CallGraph.cpp

index 56472ff799a832a9c28897282b01d7b300dd3b3c..06fed90c7f67947a0f872c6e75e917ef1d0cee44 100644 (file)
@@ -292,27 +292,6 @@ private:
   void allReferencesDropped() { NumReferences = 0; }
 };
 
-/// \brief An analysis pass to compute the \c CallGraph for a \c Module.
-///
-/// This class implements the concept of an analysis pass used by the \c
-/// ModuleAnalysisManager to run an analysis over a module and cache the
-/// resulting data.
-class CallGraphAnalysis {
-public:
-  /// \brief A formulaic typedef to inform clients of the result type.
-  typedef CallGraph Result;
-
-  static void *ID() { return (void *)&PassID; }
-
-  /// \brief Compute the \c CallGraph for the module \c M.
-  ///
-  /// The real work here is done in the \c CallGraph constructor.
-  CallGraph run(Module *M) { return CallGraph(*M); }
-
-private:
-  static char PassID;
-};
-
 /// \brief The \c ModulePass which wraps up a \c CallGraph and the logic to
 /// build it.
 ///
index 9d37748bff229cc82d7cfa64fb3d1b84e405224c..46c044a3843d473df91714a79f4966d5bfa7ecc0 100644 (file)
@@ -252,12 +252,6 @@ void CallGraphNode::replaceCallEdge(CallSite CS,
   }
 }
 
-//===----------------------------------------------------------------------===//
-// Out-of-line definitions of CallGraphAnalysis class members.
-//
-
-char CallGraphAnalysis::PassID;
-
 //===----------------------------------------------------------------------===//
 // Implementations of the CallGraphWrapperPass class methods.
 //