[all-commits] [llvm/llvm-project] 3b6405: [ORC] Fix some bugs in TPCDynamicLibrarySearchGene...

lhames via All-commits all-commits at lists.llvm.org
Fri Sep 4 13:24:31 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b64052a2572e69355969a59a0c4c8aba4fee887
      https://github.com/llvm/llvm-project/commit/3b64052a2572e69355969a59a0c4c8aba4fee887
  Author: Lang Hames <lhames at gmail.com>
  Date:   2020-09-04 (Fri, 04 Sep 2020)

  Changed paths:
    M llvm/include/llvm/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.h
    M llvm/include/llvm/ExecutionEngine/Orc/TargetProcessControl.h
    M llvm/lib/ExecutionEngine/Orc/TPCDynamicLibrarySearchGenerator.cpp
    M llvm/lib/ExecutionEngine/Orc/TargetProcessControl.cpp
    M llvm/tools/llvm-jitlink/llvm-jitlink.cpp

  Log Message:
  -----------
  [ORC] Fix some bugs in TPCDynamicLibrarySearchGenerator, use in llvm-jitlink.

TPCDynamicLibrarySearchGenerator was generating errors on missing
symbols, but that doesn't fit the DefinitionGenerator contract: A symbol
that isn't generated by a particular generator should not cause an
error.

This commit fixes the error by using SymbolLookupFlags::WeaklyReferencedSymbol
for all elements of the lookup, and switches llvm-jitlink to use
TPCDynamicLibrarySearchGenerator.




More information about the All-commits mailing list