aboutsummaryrefslogtreecommitdiff
path: root/lib/Transforms/Instrumentation/ProfilePaths
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-05 06:12:18 +0000
committerChris Lattner <sabre@nondot.org>2003-11-05 06:12:18 +0000
commit646f8d7457e2f8e459b17df1b3750579e0352a47 (patch)
tree40ef73036a8cb710955207658122219cfedb1caa /lib/Transforms/Instrumentation/ProfilePaths
parentfe32bf5d0d6602e4c352910eebf9725867046187 (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.h4
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());