Skip to content

Commit

Permalink
Add ARM64 to ArchType
Browse files Browse the repository at this point in the history
  • Loading branch information
konistehrad committed Feb 7, 2024
1 parent 6fb31a4 commit 1286503
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 11 deletions.
3 changes: 2 additions & 1 deletion src/CppParser/AST.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ enum class ArchType
{
UnknownArch,
x86,
x86_64
x86_64,
ARM64
};

class CS_API NativeLibrary
Expand Down
3 changes: 2 additions & 1 deletion src/CppParser/Bindings/CLI/AST.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ namespace CppSharp
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
};

public ref class NativeLibrary : ICppInstance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public enum ArchType
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
}

public unsafe partial class NativeLibrary : IDisposable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public enum ArchType
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
}

public unsafe partial class NativeLibrary : IDisposable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public enum ArchType
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
}

public unsafe partial class NativeLibrary : IDisposable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public enum ArchType
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
}

public unsafe partial class NativeLibrary : IDisposable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public enum ArchType
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
}

public unsafe partial class NativeLibrary : IDisposable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public enum ArchType
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
}

public unsafe partial class NativeLibrary : IDisposable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public enum ArchType
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
}

public unsafe partial class NativeLibrary : IDisposable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public enum ArchType
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
}

public unsafe partial class NativeLibrary : IDisposable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ public enum ArchType
{
UnknownArch = 0,
X86 = 1,
X86_64 = 2
X86_64 = 2,
ARM64 = 3,
}

public unsafe partial class NativeLibrary : IDisposable
Expand Down
2 changes: 2 additions & 0 deletions src/CppParser/Parser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4532,6 +4532,8 @@ static ArchType ConvertArchType(unsigned int archType)
return ArchType::x86;
case llvm::Triple::ArchType::x86_64:
return ArchType::x86_64;
case llvm::Triple::ArchType::aarch64:
return ArchType::ARM64;
}
return ArchType::UnknownArch;
}
Expand Down

0 comments on commit 1286503

Please sign in to comment.