diff options
Diffstat (limited to 'tools/llvmc2/driver/CompilationGraph.cpp')
-rw-r--r-- | tools/llvmc2/driver/CompilationGraph.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/tools/llvmc2/driver/CompilationGraph.cpp b/tools/llvmc2/driver/CompilationGraph.cpp index 838b940501..81283babb4 100644 --- a/tools/llvmc2/driver/CompilationGraph.cpp +++ b/tools/llvmc2/driver/CompilationGraph.cpp @@ -109,12 +109,8 @@ CompilationGraph::getToolsVector(const std::string& LangName) const } void CompilationGraph::insertNode(Tool* V) { - if (NodesMap.count(V->Name()) == 0) { - Node N; - N.OwningGraph = this; - N.ToolPtr = V; - NodesMap[V->Name()] = N; - } + if (NodesMap.count(V->Name()) == 0) + NodesMap[V->Name()] = Node(this, V); } void CompilationGraph::insertEdge(const std::string& A, Edge* Edg) { |