From 646f8d7457e2f8e459b17df1b3750579e0352a47 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Wed, 5 Nov 2003 06:12:18 +0000 Subject: [PATCH] Be gcc 3.4 clean git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9725 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Instrumentation/ProfilePaths/Graph.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/Transforms/Instrumentation/ProfilePaths/Graph.h b/lib/Transforms/Instrumentation/ProfilePaths/Graph.h index 45c726c80dd..5597b599e06 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 : public binary_function { bool operator()(Node *n1, Node *n2) const { return n1->getElement() < n2->getElement(); } }; - + + template<> struct less : public binary_function { bool operator()(Edge e1, Edge e2) const { assert(!e1.isNull() && !e2.isNull());