Browse Source

Improved support for Itanium-like ABIs.

pull/355/head
triton 11 years ago
parent
commit
406fabd949
  1. 4
      src/Generator/AST/VTables.cs

4
src/Generator/AST/VTables.cs

@ -12,7 +12,7 @@ namespace CppSharp.AST
{ {
case CppAbi.Microsoft: case CppAbi.Microsoft:
return GatherVTableMethodsMS(@class); return GatherVTableMethodsMS(@class);
case CppAbi.Itanium: default:
return GatherVTableMethodsItanium(@class); return GatherVTableMethodsItanium(@class);
} }
@ -62,7 +62,7 @@ namespace CppSharp.AST
return index; return index;
} }
break; break;
case CppAbi.Itanium: default:
// ignore offset to top and RTTI // ignore offset to top and RTTI
return @class.Layout.Layout.Components.IndexOf(entry) - 2; return @class.Layout.Layout.Components.IndexOf(entry) - 2;
} }

Loading…
Cancel
Save