Mercurial > projects > ldc
diff ir/irstruct.h @ 140:ffcc9a2f3d9d trunk
[svn r144] fixes
author | lindquist |
---|---|
date | Wed, 23 Jan 2008 12:56:09 +0100 |
parents | ce7b81fb957f |
children | a123dca8349b |
line wrap: on
line diff
--- a/ir/irstruct.h Tue Jan 22 00:01:16 2008 +0100 +++ b/ir/irstruct.h Wed Jan 23 12:56:09 2008 +0100 @@ -42,9 +42,17 @@ : var(v), type(ty), init(NULL) {} }; + struct InterCmp + { + bool operator()(ClassDeclaration* lhs, ClassDeclaration* rhs) const + { + return strcmp(lhs->toPrettyChars(), rhs->toPrettyChars()) < 0; + } + }; + typedef std::multimap<unsigned, Offset> OffsetMap; typedef std::vector<VarDeclaration*> VarDeclVector; - typedef std::map<ClassDeclaration*, IrInterface*> InterfaceMap; + typedef std::map<ClassDeclaration*, IrInterface*, InterCmp> InterfaceMap; typedef InterfaceMap::iterator InterfaceIter; public: