diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-05 06:12:18 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-05 06:12:18 +0000 |
commit | 646f8d7457e2f8e459b17df1b3750579e0352a47 (patch) | |
tree | 40ef73036a8cb710955207658122219cfedb1caa /lib/Transforms/Instrumentation/ProfilePaths | |
parent | fe32bf5d0d6602e4c352910eebf9725867046187 (diff) |
Be gcc 3.4 clean
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9725 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Instrumentation/ProfilePaths')
-rw-r--r-- | lib/Transforms/Instrumentation/ProfilePaths/Graph.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Transforms/Instrumentation/ProfilePaths/Graph.h b/lib/Transforms/Instrumentation/ProfilePaths/Graph.h index 45c726c80d..5597b599e0 100644 --- a/lib/Transforms/Instrumentation/ProfilePaths/Graph.h +++ b/lib/Transforms/Instrumentation/ProfilePaths/Graph.h @@ -114,12 +114,14 @@ struct graphListElement{ namespace std { + template<> struct less<Node *> : public binary_function<Node *, Node *,bool> { bool operator()(Node *n1, Node *n2) const { return n1->getElement() < n2->getElement(); } }; - + + template<> struct less<Edge> : public binary_function<Edge,Edge,bool> { bool operator()(Edge e1, Edge e2) const { assert(!e1.isNull() && !e2.isNull()); |