[all-commits] [llvm/llvm-project] 2aa85e: [ORC] Merge redundant jitlink::Symbol -> JITSymbol...

lhames via All-commits all-commits at lists.llvm.org
Wed Feb 1 16:40:07 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2aa85ecaf61dc88a3bb444e7d29855784ff432bf
      https://github.com/llvm/llvm-project/commit/2aa85ecaf61dc88a3bb444e7d29855784ff432bf
  Author: Lang Hames <lhames at gmail.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M llvm/lib/ExecutionEngine/Orc/ObjectLinkingLayer.cpp
    M llvm/unittests/ExecutionEngine/Orc/ObjectLinkingLayerTest.cpp

  Log Message:
  -----------
  [ORC] Merge redundant jitlink::Symbol -> JITSymbolFlags mappings.

Adds a getJITSymbolFlagsForSymbol function that returns the JITSymbolFlags
for a given jitlink::Symbol, and replaces severalredundant copies of that
mapping with calls to the new function. This fixes a bug in
LinkGraphMaterializationUnit::scanLinkGraph where we were failing to set the
JITSymbolFlags::Weak flag for weak symbols, and a bug in
ObjectLinkingLayer::claimOrExternalizeWeakAndCommonSymbols where we were
failing to set the JITSymbolFlags::Callable flag for callable symbols.




More information about the All-commits mailing list