From: Chris Lattner Date: Wed, 5 Nov 2003 06:12:18 +0000 (+0000) Subject: Be gcc 3.4 clean X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=646f8d7457e2f8e459b17df1b3750579e0352a47;p=oota-llvm.git Be gcc 3.4 clean git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9725 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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());