Home Ask Login Register

Developers Planet

Your answer is one click away!

highlandsprng February 2016

Constructing Unions via the LLVM C++ Api

I'm using LLVM to insert a function where of the arguments is a union, and I'm really struggling to work out how to create the union argument. I can't find anything about defining union types in the LLVM api (the union type is actually defined already in a separate file, but I can't even get the type builder to use this to create the correct type). How do I proceed.


Puppy February 2016

Unions do not exist on the LLVM type level. You must do all requisite casting, byte blitting and such yourself.

Post Status

Asked in February 2016
Viewed 3,499 times
Voted 13
Answered 1 times


Leave an answer

Quote of the day: live life