Re-apply "[llvm-jitlink] Don't demote unreferenced definitions in -harness mode"
authorLang Hames <lhames@gmail.com>
Thu, 13 Aug 2020 19:25:05 +0000 (12:25 -0700)
committerLang Hames <lhames@gmail.com>
Thu, 13 Aug 2020 20:23:17 +0000 (13:23 -0700)
commitf136e5ecfb335c61a23f09187150f363919df11a
treee779d2acbdfeea686d0bb327f22106c4c36b0b0e
parent5ef2287d36f93bac3b7b8c49c1b371d25d305e85
Re-apply "[llvm-jitlink] Don't demote unreferenced definitions in -harness mode"

This reapplies commit e137b550587a85b0d9c9c539edc79de0122b6946 with
fixes for the broken test case: Non-global symbols should only be
skipped after checking that they're not referenced by the harness.
llvm/tools/llvm-jitlink/llvm-jitlink.cpp