comparison gen/toir.cpp @ 99:a676a7743642 trunk

[svn r103] Array comparisons are now fully implemented, that is - to the extent that TypeInfo is.
author lindquist
date Thu, 15 Nov 2007 00:24:44 +0100
parents 6789050b5ad1
children 5071469303d4
comparison
equal deleted inserted replaced
98:6789050b5ad1 99:a676a7743642
1807 1807
1808 default: 1808 default:
1809 assert(0); 1809 assert(0);
1810 } 1810 }
1811 eval = new llvm::FCmpInst(cmpop, l->getRVal(), r->getRVal(), "tmp", p->scopebb()); 1811 eval = new llvm::FCmpInst(cmpop, l->getRVal(), r->getRVal(), "tmp", p->scopebb());
1812 }
1813 else if (t->ty == Tsarray || t->ty == Tarray)
1814 {
1815 Logger::println("static or dynamic array");
1816 eval = DtoArrayCompare(op,l,r);
1812 } 1817 }
1813 else 1818 else
1814 { 1819 {
1815 assert(0 && "Unsupported CmpExp type"); 1820 assert(0 && "Unsupported CmpExp type");
1816 } 1821 }