diff options
author | Mikhail Glushenkov <foldr@codedgers.com> | 2010-08-23 19:24:08 +0000 |
---|---|---|
committer | Mikhail Glushenkov <foldr@codedgers.com> | 2010-08-23 19:24:08 +0000 |
commit | 7555f0a2bc8c6f052bb3563cd27c316bf68e7661 (patch) | |
tree | 0178c5707989637958769eb988472729c3fe7cfa /include | |
parent | c712edc785cf8a028115049ed7a05a4b4af15c00 (diff) | |
download | external_llvm-7555f0a2bc8c6f052bb3563cd27c316bf68e7661.zip external_llvm-7555f0a2bc8c6f052bb3563cd27c316bf68e7661.tar.gz external_llvm-7555f0a2bc8c6f052bb3563cd27c316bf68e7661.tar.bz2 |
llvmc: Properly handle (error) in edge properties.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111827 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CompilerDriver/Common.td | 3 | ||||
-rw-r--r-- | include/llvm/CompilerDriver/CompilationGraph.h | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/include/llvm/CompilerDriver/Common.td b/include/llvm/CompilerDriver/Common.td index d378bb7..46c6078 100644 --- a/include/llvm/CompilerDriver/Common.td +++ b/include/llvm/CompilerDriver/Common.td @@ -93,9 +93,8 @@ def error; def set_option; def unset_option; -// Increase/decrease the edge weight. +// Increase the edge weight. def inc_weight; -def dec_weight; // Empty DAG marker. def empty_dag_marker; diff --git a/include/llvm/CompilerDriver/CompilationGraph.h b/include/llvm/CompilerDriver/CompilationGraph.h index e3b0cff..619c904 100644 --- a/include/llvm/CompilerDriver/CompilationGraph.h +++ b/include/llvm/CompilerDriver/CompilationGraph.h @@ -46,7 +46,7 @@ namespace llvmc { virtual ~Edge() {} const std::string& ToolName() const { return ToolName_; } - virtual unsigned Weight(const InputLanguagesSet& InLangs) const = 0; + virtual int Weight(const InputLanguagesSet& InLangs) const = 0; private: std::string ToolName_; }; @@ -55,7 +55,7 @@ namespace llvmc { class SimpleEdge : public Edge { public: SimpleEdge(const std::string& T) : Edge(T) {} - unsigned Weight(const InputLanguagesSet&) const { return 1; } + int Weight(const InputLanguagesSet&) const { return 1; } }; /// Node - A node (vertex) of the compilation graph. |