diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2015-08-05 21:04:31 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2015-08-05 21:04:31 +0000 |
commit | 8ef3cda3983842531d09e3ef7b445141b626677c (patch) | |
tree | 6d47354a9d86b3eaa1b512e43b50d925666ba93b | |
parent | 35869a26cd94e592ab6e740f3030c62c568f0048 (diff) | |
download | bcm5719-llvm-8ef3cda3983842531d09e3ef7b445141b626677c.tar.gz bcm5719-llvm-8ef3cda3983842531d09e3ef7b445141b626677c.zip |
[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
-rw-r--r-- | llvm/include/llvm/Analysis/CallGraph.h | 21 | ||||
-rw-r--r-- | llvm/lib/Analysis/IPA/CallGraph.cpp | 6 |
2 files changed, 0 insertions, 27 deletions
diff --git a/llvm/include/llvm/Analysis/CallGraph.h b/llvm/include/llvm/Analysis/CallGraph.h index 56472ff799a..06fed90c7f6 100644 --- a/llvm/include/llvm/Analysis/CallGraph.h +++ b/llvm/include/llvm/Analysis/CallGraph.h @@ -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. /// diff --git a/llvm/lib/Analysis/IPA/CallGraph.cpp b/llvm/lib/Analysis/IPA/CallGraph.cpp index 9d37748bff2..46c044a3843 100644 --- a/llvm/lib/Analysis/IPA/CallGraph.cpp +++ b/llvm/lib/Analysis/IPA/CallGraph.cpp @@ -253,12 +253,6 @@ void CallGraphNode::replaceCallEdge(CallSite CS, } //===----------------------------------------------------------------------===// -// Out-of-line definitions of CallGraphAnalysis class members. -// - -char CallGraphAnalysis::PassID; - -//===----------------------------------------------------------------------===// // Implementations of the CallGraphWrapperPass class methods. // |