summaryrefslogtreecommitdiff
path: root/tools/llvmc2/CompilationGraph.h
blob: c34b58ff5e4344337917d506147c37ba0fc6fc13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//===--- CompilationGraph.h - The LLVM Compiler Driver ----------*- C++ -*-===//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open
// Source License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
//  Compilation graph - definition.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_TOOLS_LLVMC2_COMPILATION_GRAPH_H
#define LLVM_TOOLS_LLVMC2_COMPILATION_GRAPH_H

#include "AutoGenerated.h"
#include "Tool.h"

#include "llvm/ADT/StringMap.h"
#include "llvm/System/Path.h"

namespace llvmcc {

  typedef std::vector<llvm::IntrusiveRefCntPtr<Tool> > ToolChain;
  typedef llvm::StringMap<ToolChain> ToolChainMap;

  struct CompilationGraph {
    ToolChainMap ToolChains;
    LanguageMap ExtsToLangs;

    int Build(llvm::sys::Path const& tempDir) const;
  };
}

#endif // LLVM_TOOLS_LLVMC2_COMPILATION_GRAPH_H