mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-18 11:24:01 +00:00
llvmc: Properly handle (error) in edge properties.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111827 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user