[llvm-commits] [llvm] r59096 - in /llvm/trunk: tools/llvmc2/driver/CompilationGraph.cpp utils/TableGen/LLVMCConfigurationEmitter.cpp

Mikhail Glushenkov foldr at codedgers.com
Tue Nov 11 16:04:46 PST 2008


Author: foldr
Date: Tue Nov 11 18:04:46 2008
New Revision: 59096

URL: http://llvm.org/viewvc/llvm-project?rev=59096&view=rev
Log:
Some cosmetic changes.

Modified:
    llvm/trunk/tools/llvmc2/driver/CompilationGraph.cpp
    llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp

Modified: llvm/trunk/tools/llvmc2/driver/CompilationGraph.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvmc2/driver/CompilationGraph.cpp?rev=59096&r1=59095&r2=59096&view=diff

==============================================================================
--- llvm/trunk/tools/llvmc2/driver/CompilationGraph.cpp (original)
+++ llvm/trunk/tools/llvmc2/driver/CompilationGraph.cpp Tue Nov 11 18:04:46 2008
@@ -109,12 +109,8 @@
 }
 
 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) {

Modified: llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp?rev=59096&r1=59095&r2=59096&view=diff

==============================================================================
--- llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/LLVMCConfigurationEmitter.cpp Tue Nov 11 18:04:46 2008
@@ -20,12 +20,14 @@
 #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 {





More information about the llvm-commits mailing list