fix warning when assertions disabled.
[oota-llvm.git] / tools / llvmc2 / Graph.td
1 //===- Graph.td - LLVMCC toolchain descriptions ------------*- tablegen -*-===//
2 //
3 //                     The LLVM Compiler Infrastructure
4 //
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
7 //
8 //===----------------------------------------------------------------------===//
9 //
10 // This file contains compilation graph description used by llvmcc.
11 //
12 //===----------------------------------------------------------------------===//
13
14 include "Common.td"
15 include "Tools.td"
16
17 // Toolchains
18
19 def CompilationGraph : CompilationGraph<[
20     Edge<root, llvm_gcc_c>,
21     Edge<root, llvm_gcc_assembler>,
22     Edge<root, llvm_gcc_cpp>,
23     Edge<root, llvm_as>,
24
25     Edge<llvm_gcc_c, llc>,
26     Edge<llvm_gcc_cpp, llc>,
27     Edge<llvm_as, llc>,
28
29     OptionalEdge<llvm_gcc_c, opt, (case (switch_on "opt"), (inc_weight))>,
30     OptionalEdge<llvm_gcc_cpp, opt, (case (switch_on "opt"), (inc_weight))>,
31     OptionalEdge<llvm_as, opt, (case (switch_on "opt"), (inc_weight))>,
32     Edge<opt, llc>,
33
34     Edge<llc, llvm_gcc_assembler>,
35     Edge<llvm_gcc_assembler, llvm_gcc_linker>,
36     OptionalEdge<llvm_gcc_assembler, llvm_gcc_cpp_linker,
37                  (case
38                      (input_languages_contain "c++"), (inc_weight),
39                      (or (parameter_equals "linker", "g++"),
40                          (parameter_equals "linker", "c++")), (inc_weight))>,
41
42
43     Edge<root, llvm_gcc_linker>,
44     OptionalEdge<root, llvm_gcc_cpp_linker,
45                  (case
46                      (input_languages_contain "c++"), (inc_weight),
47                      (or (parameter_equals "linker", "g++"),
48                          (parameter_equals "linker", "c++")), (inc_weight))>
49     ]>;