diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2008-11-12 00:04:46 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2008-11-12 00:04:46 +0000 |
commit | aa4774caaafddb1ddf42485598f6040469615ce2 (patch) | |
tree | ec9663ad61f99e0fca974f3b5bd68fbf1b52394b | |
parent | 19ab6b09401be56cc13e4c81262cc76235a4fa43 (diff) |
Some cosmetic changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@59096 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | tools/llvmc2/driver/CompilationGraph.cpp | 8 | ||||
-rw-r--r-- | utils/TableGen/LLVMCConfigurationEmitter.cpp | 2 |
2 files changed, 4 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) { diff --git a/utils/TableGen/LLVMCConfigurationEmitter.cpp b/utils/TableGen/LLVMCConfigurationEmitter.cpp index a68c0561ce..7836172a44 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 <algorithm> #include <cassert> #include <functional> #include <stdexcept> #include <string> #include <typeinfo> + using namespace llvm; namespace { |