}
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) {
#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 {