Skip to content

Commit

Permalink
Update iOS64 ABI name to the more accurate AppleARM64.
Browse files Browse the repository at this point in the history
  • Loading branch information
tritao committed Feb 1, 2024
1 parent de614b0 commit 01a9ccd
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/AST/ASTContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public enum CppAbi
ARM,
AArch64,
iOS,
iOS64,
AppleARM64,
WebAssembly
}

Expand Down
2 changes: 1 addition & 1 deletion src/CppParser/Bindings/CLI/Decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ namespace CppSharp
Microsoft = 1,
ARM = 2,
iOS = 3,
iOS64 = 4,
AppleARM64 = 4,
WebAssembly = 5
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6403,7 +6403,7 @@ public enum CppAbi
ARM = 2,
AArch64 = 3,
iOS = 4,
iOS64 = 5,
AppleARM64 = 5,
WebAssembly = 6
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6403,7 +6403,7 @@ public enum CppAbi
ARM = 2,
AArch64 = 3,
iOS = 4,
iOS64 = 5,
AppleARM64 = 5,
WebAssembly = 6
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6403,7 +6403,7 @@ public enum CppAbi
ARM = 2,
AArch64 = 3,
iOS = 4,
iOS64 = 5,
AppleARM64 = 5,
WebAssembly = 6
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6403,7 +6403,7 @@ public enum CppAbi
ARM = 2,
AArch64 = 3,
iOS = 4,
iOS64 = 5,
AppleARM64 = 5,
WebAssembly = 6
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6403,7 +6403,7 @@ public enum CppAbi
ARM = 2,
AArch64 = 3,
iOS = 4,
iOS64 = 5,
AppleARM64 = 5,
WebAssembly = 6
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6402,7 +6402,7 @@ public enum CppAbi
Microsoft = 1,
ARM = 2,
iOS = 3,
iOS64 = 4,
AppleARM64 = 4,
WebAssembly = 5
}

Expand Down
2 changes: 1 addition & 1 deletion src/CppParser/Decl.h
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ namespace CppSharp
ARM,
AArch64,
iOS,
iOS64,
AppleARM64,
WebAssembly
};

Expand Down
4 changes: 2 additions & 2 deletions src/CppParser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ static CppAbi GetClassLayoutAbi(clang::TargetCXXABI::Kind abi)
case clang::TargetCXXABI::iOS:
return CppAbi::iOS;
case clang::TargetCXXABI::AppleARM64:
return CppAbi::iOS64;
return CppAbi::AppleARM64;
case clang::TargetCXXABI::WebAssembly:
return CppAbi::WebAssembly;
default:
Expand Down Expand Up @@ -237,7 +237,7 @@ ConvertToClangTargetCXXABI(CppSharp::CppParser::AST::CppAbi abi)
return TargetCXXABI::GenericARM;
case CppSharp::CppParser::AST::CppAbi::iOS:
return TargetCXXABI::iOS;
case CppSharp::CppParser::AST::CppAbi::iOS64:
case CppSharp::CppParser::AST::CppAbi::AppleARM64:
return TargetCXXABI::AppleARM64;
}

Expand Down
4 changes: 2 additions & 2 deletions src/Parser/ASTConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1723,8 +1723,8 @@ AST.CppAbi VisitCppAbi(CppAbi abi)
return AST.CppAbi.AArch64;
case CppAbi.iOS:
return AST.CppAbi.iOS;
case CppAbi.iOS64:
return AST.CppAbi.iOS64;
case CppAbi.AppleARM64:
return AST.CppAbi.AppleARM64;
case CppAbi.WebAssembly:
return AST.CppAbi.WebAssembly;
default:
Expand Down

0 comments on commit 01a9ccd

Please sign in to comment.