зеркало из https://github.com/mono/CppSharp.git
Add support for WebAssembly C++ ABI to parser and AST converter.
This commit is contained in:
Родитель
e76514bbdb
Коммит
813cf1fb74
|
@ -11,7 +11,8 @@ namespace CppSharp.AST
|
|||
Microsoft,
|
||||
ARM,
|
||||
iOS,
|
||||
iOS64
|
||||
iOS64,
|
||||
WebAssembly
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -256,7 +256,8 @@ namespace CppSharp
|
|||
Microsoft = 1,
|
||||
ARM = 2,
|
||||
iOS = 3,
|
||||
iOS64 = 4
|
||||
iOS64 = 4,
|
||||
WebAssembly = 5
|
||||
};
|
||||
|
||||
public enum class RecordArgABI
|
||||
|
|
|
@ -6301,7 +6301,8 @@ namespace CppSharp
|
|||
Microsoft = 1,
|
||||
ARM = 2,
|
||||
iOS = 3,
|
||||
iOS64 = 4
|
||||
iOS64 = 4,
|
||||
WebAssembly = 5
|
||||
}
|
||||
|
||||
public enum RecordArgABI
|
||||
|
|
|
@ -6301,7 +6301,8 @@ namespace CppSharp
|
|||
Microsoft = 1,
|
||||
ARM = 2,
|
||||
iOS = 3,
|
||||
iOS64 = 4
|
||||
iOS64 = 4,
|
||||
WebAssembly = 5
|
||||
}
|
||||
|
||||
public enum RecordArgABI
|
||||
|
|
|
@ -6301,7 +6301,8 @@ namespace CppSharp
|
|||
Microsoft = 1,
|
||||
ARM = 2,
|
||||
iOS = 3,
|
||||
iOS64 = 4
|
||||
iOS64 = 4,
|
||||
WebAssembly = 5
|
||||
}
|
||||
|
||||
public enum RecordArgABI
|
||||
|
|
|
@ -6301,7 +6301,8 @@ namespace CppSharp
|
|||
Microsoft = 1,
|
||||
ARM = 2,
|
||||
iOS = 3,
|
||||
iOS64 = 4
|
||||
iOS64 = 4,
|
||||
WebAssembly = 5
|
||||
}
|
||||
|
||||
public enum RecordArgABI
|
||||
|
|
|
@ -6301,7 +6301,8 @@ namespace CppSharp
|
|||
Microsoft = 1,
|
||||
ARM = 2,
|
||||
iOS = 3,
|
||||
iOS64 = 4
|
||||
iOS64 = 4,
|
||||
WebAssembly = 5
|
||||
}
|
||||
|
||||
public enum RecordArgABI
|
||||
|
|
|
@ -6301,7 +6301,8 @@ namespace CppSharp
|
|||
Microsoft = 1,
|
||||
ARM = 2,
|
||||
iOS = 3,
|
||||
iOS64 = 4
|
||||
iOS64 = 4,
|
||||
WebAssembly = 5
|
||||
}
|
||||
|
||||
public enum RecordArgABI
|
||||
|
|
1650
src/CppParser/Decl.h
1650
src/CppParser/Decl.h
Разница между файлами не показана из-за своего большого размера
Загрузить разницу
|
@ -104,6 +104,8 @@ static CppAbi GetClassLayoutAbi(clang::TargetCXXABI::Kind abi)
|
|||
return CppAbi::iOS;
|
||||
case clang::TargetCXXABI::AppleARM64:
|
||||
return CppAbi::iOS64;
|
||||
case clang::TargetCXXABI::WebAssembly:
|
||||
return CppAbi::WebAssembly;
|
||||
default:
|
||||
llvm_unreachable("Unsupported C++ ABI kind");
|
||||
}
|
||||
|
|
|
@ -1719,6 +1719,8 @@ namespace CppSharp
|
|||
return AST.CppAbi.iOS;
|
||||
case CppAbi.iOS64:
|
||||
return AST.CppAbi.iOS64;
|
||||
case CppAbi.WebAssembly:
|
||||
return AST.CppAbi.WebAssembly;
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException("abi");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче