use correct names for primitive classes in type generator

This commit is contained in:
Joel Dice 2011-03-17 08:48:47 -06:00
parent 110e2e1d52
commit 3f87129cbc

View File

@ -2177,8 +2177,22 @@ writeNameInitialization(Output* out, Object* type)
{
out->write("nameClass(t, Machine::");
out->write(capitalize(typeName(type)));
out->write("Type, \"vm::");
out->write(typeName(type));
out->write("Type, \"");
if (equal(typeName(type), "jbyte")
or equal(typeName(type), "jboolean")
or equal(typeName(type), "jshort")
or equal(typeName(type), "jchar")
or equal(typeName(type), "jint")
or equal(typeName(type), "jlong")
or equal(typeName(type), "jfloat")
or equal(typeName(type), "jdouble")
or equal(typeName(type), "jvoid"))
{
out->write(typeName(type) + 1);
} else {
out->write("vm::");
out->write(typeName(type));
}
out->write("\");\n");
}