• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Test alias generation.
2// RUN: tblgen -I %p/../../include --gen-llvmc %s -o %t
3// RUN: FileCheck -input-file %t %s
4// RUN: %compile_cxx %t
5// XFAIL: vg_leak
6
7include "llvm/CompilerDriver/Common.td"
8
9def OptList : OptionList<[
10
11(switch_option "dummy1", (help "none")),
12// CHECK: cl::alias Alias_dummy2
13(alias_option "dummy2", "dummy1")
14]>;
15
16def dummy_tool : Tool<[
17(command "dummy_cmd"),
18(in_language "dummy_lang"),
19(out_language "dummy_lang"),
20(actions (case
21         (switch_on "dummy1"), (forward "dummy1")))
22]>;
23
24def DummyGraph : CompilationGraph<[(edge "root", "dummy_tool")]>;
25