Mercurial > hg > CbC > CbC_llvm
diff lld/MachO/ExportTrie.h @ 207:2e18cbf3894f
LLVM12
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Tue, 08 Jun 2021 06:07:14 +0900 |
parents | 0572611fdcc8 |
children | c4bab56944e8 |
line wrap: on
line diff
--- a/lld/MachO/ExportTrie.h Mon May 25 11:55:54 2020 +0900 +++ b/lld/MachO/ExportTrie.h Tue Jun 08 06:07:14 2021 +0900 @@ -22,6 +22,7 @@ class TrieBuilder { public: + void setImageBase(uint64_t addr) { imageBase = addr; } void addSymbol(const Symbol &sym) { exported.push_back(&sym); } // Returns the size in bytes of the serialized trie. size_t build(); @@ -32,6 +33,7 @@ void sortAndBuild(llvm::MutableArrayRef<const Symbol *> vec, TrieNode *node, size_t lastPos, size_t pos); + uint64_t imageBase = 0; std::vector<const Symbol *> exported; std::vector<TrieNode *> nodes; };