From: Mikhail Glushenkov Date: Wed, 12 Nov 2008 00:04:46 +0000 (+0000) Subject: Some cosmetic changes. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=aa4774caaafddb1ddf42485598f6040469615ce2;p=oota-llvm.git Some cosmetic changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59096 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvmc2/driver/CompilationGraph.cpp b/tools/llvmc2/driver/CompilationGraph.cpp index 838b9405013..81283babb48 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) { diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index a68c0561cea..7836172a44c 100644 --- a/utils/TableGen/LLVMCConfigurationEmitter.cpp +++ b/utils/TableGen/LLVMCConfigurationEmitter.cpp @@ -20,12 +20,14 @@ #include "llvm/ADT/StringMap.h" #include "llvm/ADT/StringSet.h" #include "llvm/Support/Streams.h" + #include #include #include #include #include #include + using namespace llvm; namespace {