LLVMGetTargetDataLayout was removed from the C API,
and then TargetMachine.TargetData was removed. Later,
LLVMCreateTargetMachineData was added to the C API,
and we now expose this via the Go API.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Maybe this should be renamed CreateTargetData to emphasize that the TargetData is owned by the caller. We probably need to update the code in llgo for the new ownership as well.
Comment Actions
I really don't know much about go. If @pcc don't have the bandwidth to review, I'll dig into this, but I'd prefer to defers to someone more experienced.