Print objects of specific classes better in JIT::Type::toString @override-unit-failures

Right now it returns "{}".
Esse commit está contido em:
Jordan DeLong
2013-06-01 15:31:01 -07:00
commit de sgolemon
commit 05c607e0a7
+4
Ver Arquivo
@@ -55,6 +55,10 @@ std::string Type::toString() const {
IR_TYPES
# undef IRT
if (strictSubtypeOf(Type::Obj)) {
return folly::format("Obj<{}>", m_class->name()->data()).str();
}
// Concat all of the primitive types in the custom union type
std::vector<std::string> types;
# define IRT(name, ...) if (name.subtypeOf(*this)) types.push_back(#name);