Browse Source

Revert "Removed the ABI setters since this is provided per layout anymore."

This reverts commit ebfb2c233b.
pull/86/head
triton 12 years ago
parent
commit
3cc15b5f48
  1. 2
      src/Parser/Parser.cpp

2
src/Parser/Parser.cpp

@ -491,6 +491,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C) @@ -491,6 +491,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);
@ -512,6 +513,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C) @@ -512,6 +513,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