diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-08-23 23:21:23 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-08-23 23:21:23 +0000 |
commit | d9a7316f9a72d8ea98313257ad8752c1dec36b89 (patch) | |
tree | 441b9e877c0380880798ef1c6ea7d1919bc340cc /include | |
parent | 49d96380753c8cb93181a5662ed60dbf6034ee67 (diff) | |
download | llvm-d9a7316f9a72d8ea98313257ad8752c1dec36b89.tar.gz llvm-d9a7316f9a72d8ea98313257ad8752c1dec36b89.tar.bz2 llvm-d9a7316f9a72d8ea98313257ad8752c1dec36b89.tar.xz |
llvmc: Make syntax more consistent.
CompilationGraph and LanguageMap definitions do not use special syntax anymore.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111862 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CompilerDriver/Common.td | 31 |
1 files changed, 7 insertions, 24 deletions
diff --git a/include/llvm/CompilerDriver/Common.td b/include/llvm/CompilerDriver/Common.td index 46c60781ca..84e8783d20 100644 --- a/include/llvm/CompilerDriver/Common.td +++ b/include/llvm/CompilerDriver/Common.td @@ -96,9 +96,6 @@ def unset_option; // Increase the edge weight. def inc_weight; -// Empty DAG marker. -def empty_dag_marker; - // Option list - a single place to specify options. class OptionList<list<dag> l> { list<dag> options = l; @@ -111,31 +108,17 @@ class OptionPreprocessor<dag d> { // Map from suffixes to language names -class LangToSuffixes<string str, list<string> lst> { - string lang = str; - list<string> suffixes = lst; -} +def lang_to_suffixes; -class LanguageMap<list<LangToSuffixes> lst> { - list<LangToSuffixes> map = lst; +class LanguageMap<list<dag> l> { + list<dag> map = l; } // Compilation graph -class EdgeBase<string t1, string t2, dag d> { - string a = t1; - string b = t2; - dag weight = d; -} - -class Edge<string t1, string t2> : EdgeBase<t1, t2, (empty_dag_marker)>; - -// Edge and SimpleEdge are synonyms. -class SimpleEdge<string t1, string t2> : EdgeBase<t1, t2, (empty_dag_marker)>; - -// Optionally enabled edge. -class OptionalEdge<string t1, string t2, dag props> : EdgeBase<t1, t2, props>; +def edge; +def optional_edge; -class CompilationGraph<list<EdgeBase> lst> { - list<EdgeBase> edges = lst; +class CompilationGraph<list<dag> l> { + list<dag> edges = l; } |