mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
[LCG] Remove the Module reference member which we weren't using for
anything and doesn't make sense if assigning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@206449 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -209,8 +209,6 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Module &M;
|
|
||||||
|
|
||||||
/// \brief Allocator that holds all the call graph nodes.
|
/// \brief Allocator that holds all the call graph nodes.
|
||||||
SpecificBumpPtrAllocator<Node> BPA;
|
SpecificBumpPtrAllocator<Node> BPA;
|
||||||
|
|
||||||
|
@@ -86,7 +86,7 @@ LazyCallGraph::Node::Node(LazyCallGraph &G, Node &&OtherN)
|
|||||||
Callee = G.moveInto(std::move(*ChildN));
|
Callee = G.moveInto(std::move(*ChildN));
|
||||||
}
|
}
|
||||||
|
|
||||||
LazyCallGraph::LazyCallGraph(Module &M) : M(M) {
|
LazyCallGraph::LazyCallGraph(Module &M) {
|
||||||
for (Function &F : M)
|
for (Function &F : M)
|
||||||
if (!F.isDeclaration() && !F.hasLocalLinkage())
|
if (!F.isDeclaration() && !F.hasLocalLinkage())
|
||||||
if (EntryNodeSet.insert(&F))
|
if (EntryNodeSet.insert(&F))
|
||||||
@@ -104,7 +104,7 @@ LazyCallGraph::LazyCallGraph(Module &M) : M(M) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
LazyCallGraph::LazyCallGraph(const LazyCallGraph &G)
|
LazyCallGraph::LazyCallGraph(const LazyCallGraph &G)
|
||||||
: M(G.M), EntryNodeSet(G.EntryNodeSet) {
|
: EntryNodeSet(G.EntryNodeSet) {
|
||||||
EntryNodes.reserve(G.EntryNodes.size());
|
EntryNodes.reserve(G.EntryNodes.size());
|
||||||
for (const auto &EntryNode : G.EntryNodes)
|
for (const auto &EntryNode : G.EntryNodes)
|
||||||
if (Function *Callee = EntryNode.dyn_cast<Function *>())
|
if (Function *Callee = EntryNode.dyn_cast<Function *>())
|
||||||
@@ -117,7 +117,7 @@ LazyCallGraph::LazyCallGraph(const LazyCallGraph &G)
|
|||||||
// invalidating any of the allocated memory. We should make that be the case at
|
// invalidating any of the allocated memory. We should make that be the case at
|
||||||
// some point and delete this.
|
// some point and delete this.
|
||||||
LazyCallGraph::LazyCallGraph(LazyCallGraph &&G)
|
LazyCallGraph::LazyCallGraph(LazyCallGraph &&G)
|
||||||
: M(G.M), EntryNodes(std::move(G.EntryNodes)),
|
: EntryNodes(std::move(G.EntryNodes)),
|
||||||
EntryNodeSet(std::move(G.EntryNodeSet)) {
|
EntryNodeSet(std::move(G.EntryNodeSet)) {
|
||||||
// Loop over our EntryNodes. They've been moved from another graph, so we
|
// 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
|
// need to move the Node*s to live under our bump ptr allocator. We can just
|
||||||
|
Reference in New Issue
Block a user