-
Notifications
You must be signed in to change notification settings - Fork 99
LLVM.GetTargetFromTriple in OO api #142
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yes I also realized this, this is the only way I could make it work: unsafe
{
fixed (byte* ptr = Encoding.ASCII.GetBytes("data-layout"))
LLVM.SetDataLayout(Module, (sbyte*)ptr);
fixed (byte* ptr = Encoding.ASCII.GetBytes("target"))
LLVM.SetTarget(Module, (sbyte*)ptr);
} Unsafe, but works. |
Thanks a lot. I have been looking for a workaround for weeks now. 😃 |
Yeah, no problem 😉. I want create a new pull request for these missing methods but I need to research the code structure more. |
The nicer managed wrapper tries to mirror the C++ API structure where possible, there are naturally chunks missing and so not everything can be mirrored perfectly. |
There does not seem to be an equivalent method in the object oriented api.
The text was updated successfully, but these errors were encountered: