This is an archive of the discontinued LLVM Phabricator instance.

[Orc][C-bindings] remove LLVMOrcJITTargetMachineBuilderDisposeTargetTriple in favor of LLVMDisposeMessage
ClosedPublic

Authored by supergrecko on May 21 2021, 4:32 PM.

Details

Summary

The implementation and intent behind freeing the triple string here is the same as LLVMGetDefaultTargetTriple (and any other owned c string returned from the C API), so we should use LLVMDisposeMessage for to free the string for consistency.

Diff Detail

Event Timeline

supergrecko created this revision.May 21 2021, 4:32 PM
supergrecko requested review of this revision.May 21 2021, 4:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 21 2021, 4:32 PM
lhames accepted this revision.May 21 2021, 5:15 PM

LGTM.

This revision is now accepted and ready to land.May 21 2021, 5:15 PM