Per Chris's comment, remove another static (this one
is a static comparator operator).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106511 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/CodeGen/CodeGenModule.h b/lib/CodeGen/CodeGenModule.h
index 713a5fd..fbb5d35 100644
--- a/lib/CodeGen/CodeGenModule.h
+++ b/lib/CodeGen/CodeGenModule.h
@@ -80,6 +80,20 @@
unsigned int lex_order;
OrderGlobalInits(unsigned int p, unsigned int l)
: priority(p), lex_order(l) {}
+ friend bool operator==(const OrderGlobalInits &LHS,
+ const OrderGlobalInits &RHS) {
+ return LHS.priority == RHS.priority &&
+ LHS.lex_order == RHS.lex_order;
+ }
+
+ friend bool operator<(const OrderGlobalInits &LHS,
+ const OrderGlobalInits &RHS) {
+ if (LHS.priority < RHS.priority)
+ return true;
+
+ return LHS.priority == RHS.priority &&
+ LHS.lex_order < RHS.lex_order;
+ }
} OrderGlobalInitsType;
/// CodeGenModule - This class organizes the cross-function state that is used