[all-commits] [llvm/llvm-project] 40df1b: [ORC][C-bindings] Replace LLVMOrcJITTargetMachineB...

lhames via All-commits all-commits at lists.llvm.org
Fri May 21 17:38:30 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 40df1b15b4f718d203272290cc831c7b174c1a55
      https://github.com/llvm/llvm-project/commit/40df1b15b4f718d203272290cc831c7b174c1a55
  Author: Lang Hames <lhames at gmail.com>
  Date:   2021-05-21 (Fri, 21 May 2021)

  Changed paths:
    M llvm/include/llvm-c/Orc.h
    M llvm/lib/ExecutionEngine/Orc/OrcV2CBindings.cpp
    M llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp

  Log Message:
  -----------
  [ORC][C-bindings] Replace LLVMOrcJITTargetMachineBuilderDisposeTargetTriple.

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.

Patch by Mats Larsen -- thanks Mats!

Reviewed By: lhames

Differential Revision: https://reviews.llvm.org/D102957




More information about the All-commits mailing list