-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating the libLLVM and LLVMSharp version to v9.0.0 (#121)
* Updating the libLLVM and LLVMSharp version to v9.0.0 * Regenerating the libLLVM bindings for 9.0.0 * Moving the libLLVM interop types to the LLVMSharp.Interop namespace * Adding wrapper types for the new/missing native types * Cleaning up the codebase to use simplified usings * Renaming various usages of Pointer to Handle * Fixing LLVMSharp.UnitTests.IR.ComparesGreaterThan to use valid IR * Fixing LLVMSharp.UnitTests.IR.ReturnsSizeOf to use valid IR
- Loading branch information
1 parent
6f70324
commit 52b94ee
Showing
154 changed files
with
1,665 additions
and
1,329 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
// Copyright (c) Microsoft and Contributors. All rights reserved. Licensed under the University of Illinois/NCSA Open Source License. See LICENSE.txt in the project root for license information. | ||
|
||
using System; | ||
|
||
namespace LLVMSharp.Interop | ||
{ | ||
public unsafe partial struct LLVMBinaryRef | ||
{ | ||
public LLVMBinaryRef(IntPtr handle) | ||
{ | ||
Handle = handle; | ||
} | ||
|
||
public IntPtr Handle; | ||
|
||
public static implicit operator LLVMBinaryRef(LLVMOpaqueBinary* Comdat) | ||
{ | ||
return new LLVMBinaryRef((IntPtr)Comdat); | ||
} | ||
|
||
public static implicit operator LLVMOpaqueBinary*(LLVMBinaryRef Comdat) | ||
{ | ||
return (LLVMOpaqueBinary*)Comdat.Handle; | ||
} | ||
} | ||
} |
Oops, something went wrong.