Browse Source

Added the C++ ABI to the class layouts.

pull/22/merge
triton 13 years ago
parent
commit
46989d7f50
  1. 2
      src/Parser/Parser.cpp

2
src/Parser/Parser.cpp

@ -486,6 +486,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C) @@ -486,6 +486,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C)
{
case TargetCXXABI::Microsoft:
{
C->Layout->ABI = CppSharp::AST::CppAbi::Microsoft;
MicrosoftVFTableContext VTContext(*AST);
auto VFPtrs = VTContext.getVFPtrOffsets(RD);
@ -507,6 +508,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C) @@ -507,6 +508,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C)
}
case TargetCXXABI::GenericItanium:
{
C->Layout->ABI = CppSharp::AST::CppAbi::Itanium;
VTableContext VTContext(*AST);
auto& VTLayout = VTContext.getVTableLayout(RD);

Loading…
Cancel
Save