[llvm] r206449 - [LCG] Remove the Module reference member which we weren't using for

Chandler Carruth chandlerc at gmail.com
Thu Apr 17 00:22:19 PDT 2014


Author: chandlerc
Date: Thu Apr 17 02:22:19 2014
New Revision: 206449

URL: http://llvm.org/viewvc/llvm-project?rev=206449&view=rev
Log:
[LCG] Remove the Module reference member which we weren't using for
anything and doesn't make sense if assigning.

Modified:
    llvm/trunk/include/llvm/Analysis/LazyCallGraph.h
    llvm/trunk/lib/Analysis/LazyCallGraph.cpp

Modified: llvm/trunk/include/llvm/Analysis/LazyCallGraph.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Analysis/LazyCallGraph.h?rev=206449&r1=206448&r2=206449&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Analysis/LazyCallGraph.h (original)
+++ llvm/trunk/include/llvm/Analysis/LazyCallGraph.h Thu Apr 17 02:22:19 2014
@@ -209,8 +209,6 @@ public:
   }
 
 private:
-  Module &M;
-
   /// \brief Allocator that holds all the call graph nodes.
   SpecificBumpPtrAllocator<Node> BPA;
 

Modified: llvm/trunk/lib/Analysis/LazyCallGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/LazyCallGraph.cpp?rev=206449&r1=206448&r2=206449&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/LazyCallGraph.cpp (original)
+++ llvm/trunk/lib/Analysis/LazyCallGraph.cpp Thu Apr 17 02:22:19 2014
@@ -86,7 +86,7 @@ LazyCallGraph::Node::Node(LazyCallGraph
       Callee = G.moveInto(std::move(*ChildN));
 }
 
-LazyCallGraph::LazyCallGraph(Module &M) : M(M) {
+LazyCallGraph::LazyCallGraph(Module &M) {
   for (Function &F : M)
     if (!F.isDeclaration() && !F.hasLocalLinkage())
       if (EntryNodeSet.insert(&F))
@@ -104,7 +104,7 @@ LazyCallGraph::LazyCallGraph(Module &M)
 }
 
 LazyCallGraph::LazyCallGraph(const LazyCallGraph &G)
-    : M(G.M), EntryNodeSet(G.EntryNodeSet) {
+    : EntryNodeSet(G.EntryNodeSet) {
   EntryNodes.reserve(G.EntryNodes.size());
   for (const auto &EntryNode : G.EntryNodes)
     if (Function *Callee = EntryNode.dyn_cast<Function *>())
@@ -117,7 +117,7 @@ LazyCallGraph::LazyCallGraph(const LazyC
 // invalidating any of the allocated memory. We should make that be the case at
 // some point and delete this.
 LazyCallGraph::LazyCallGraph(LazyCallGraph &&G)
-    : M(G.M), EntryNodes(std::move(G.EntryNodes)),
+    : EntryNodes(std::move(G.EntryNodes)),
       EntryNodeSet(std::move(G.EntryNodeSet)) {
   // Loop over our EntryNodes. They've been moved from another graph, so we
   // need to move the Node*s to live under our bump ptr allocator. We can just





More information about the llvm-commits mailing list