[JITLink] Don't issue lookups for empty symbol sets.
authorLang Hames <lhames@gmail.com>
Fri, 19 Mar 2021 21:54:07 +0000 (14:54 -0700)
committerLang Hames <lhames@gmail.com>
Fri, 19 Mar 2021 23:10:47 +0000 (16:10 -0700)
commit602e19ed79b8a15500bf7a683cbaa1ca24c9536d
tree0e79439383850f07b5a4a23ec2b28aca70b78e96
parent528f6f7d617757addac9b51dd5bcc1ab1352e9be
[JITLink] Don't issue lookups for empty symbol sets.

Issuing a lookup for an empty symbol set is legal, but can actually result in
unrelated work being done if there was a work queue left over from the previous
lookup. We can avoid doing this unrelated work (reducing stack depth and
interleaving of debugging output) by not issuing these no-op lookups in the
first place.
llvm/lib/ExecutionEngine/JITLink/JITLinkGeneric.cpp