[JITLink] Pass Allocator (rather than storage) into Symbol named constructors.
authorLang Hames <lhames@gmail.com>
Tue, 2 Aug 2022 01:41:47 +0000 (15:41 -1000)
committerLang Hames <lhames@gmail.com>
Wed, 17 Aug 2022 22:55:42 +0000 (15:55 -0700)
commit64949209871c736bdb123a03784ec89ab7fa581d
tree6cd580031851f0d1607415417c918c70a1b09642
parentc2786683caa9d5011eda7429fcbe46e5987c8cd0
[JITLink] Pass Allocator (rather than storage) into Symbol named constructors.

Also switch from orc::ExecutorAddrDiff to uint64_t for the Symbol::Size field.

These changes help to prepare for the introduction of symbol alias support:
Aliases will require an auxiliary data structure which will also need to be
allocated (hence the need to pass the allocator down). The Size field will be
re-tasked to track the auxiliary data (which will hold a replacement Size field)
if the symbol is either an alias, or aliased by some other symbol.
llvm/include/llvm/ExecutionEngine/JITLink/JITLink.h