Some cosmetic changes.
authorMikhail Glushenkov <foldr@codedgers.com>
Wed, 12 Nov 2008 00:04:46 +0000 (00:04 +0000)
committerMikhail Glushenkov <foldr@codedgers.com>
Wed, 12 Nov 2008 00:04:46 +0000 (00:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59096 91177308-0d34-0410-b5e6-96231b3b80d8

tools/llvmc2/driver/CompilationGraph.cpp
utils/TableGen/LLVMCConfigurationEmitter.cpp

index 838b94050131c1546248fa7deeb00f4f0bc32092..81283babb4858bfb172d4906f9412ce90b5714e7 100644 (file)
@@ -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) {
index a68c0561cea52e11b8368e74217d49b63f1fc231..7836172a44ca389198801b1bdaa241d8351ec6eb 100644 (file)
 #include "llvm/ADT/StringMap.h"
 #include "llvm/ADT/StringSet.h"
 #include "llvm/Support/Streams.h"
+
 #include <algorithm>
 #include <cassert>
 #include <functional>
 #include <stdexcept>
 #include <string>
 #include <typeinfo>
+
 using namespace llvm;
 
 namespace {