Browse Source

Check if clang SVN_REVISION is greater than 187409 before trying to use MicrosoftVFTableContext.

pull/16/head
marcos henrich 13 years ago
parent
commit
0c97842a8b
  1. 2
      src/Parser/Parser.cpp

2
src/Parser/Parser.cpp

@ -463,6 +463,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C)
{ {
case TargetCXXABI::Microsoft: case TargetCXXABI::Microsoft:
{ {
#if SVN_REVISION >= 187409
MicrosoftVFTableContext VTContext(*AST); MicrosoftVFTableContext VTContext(*AST);
auto VFPtrs = VTContext.getVFPtrOffsets(RD); auto VFPtrs = VTContext.getVFPtrOffsets(RD);
@ -481,6 +482,7 @@ void Parser::WalkVTable(clang::CXXRecordDecl* RD, CppSharp::AST::Class^ C)
C->Layout->VFTables->Add(Info); C->Layout->VFTables->Add(Info);
break; break;
} }
#endif
} }
case TargetCXXABI::GenericItanium: case TargetCXXABI::GenericItanium:
{ {

Loading…
Cancel
Save