mirror of
https://github.com/xen-project/xen.git
synced 2026-10-30 03:00:05 +01:00
ocaml: Correct ocaml type name for Aggregate types.
No change to the generated code because this path isn't used yet. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> Acked-by: Ian Jackson <ian.jackson.citrix.com> Committed-by: Ian Jackson <ian.jackson.citrix.com>
This commit is contained in:
1 parent
eae124c8f3
commit
e00ef46e17
1 file changed
+2
@@ -59,6 +59,8 @@ def ocaml_type_of(ty):
|
||||
if not typename:
|
||||
raise NotImplementedError("No typename for Builtin %s (%s)" % (ty.typename, type(ty)))
|
||||
return typename
|
||||
elif isinstance(ty,libxltypes.Aggregate):
|
||||
return ty.rawname.capitalize() + ".t"
|
||||
else:
|
||||
return ty.rawname
|
||||
|
||||
|
||||