[llvm] Move a lot of symbol code to use the symbol string pool (PR #115796)
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 2 22:14:59 PST 2024
================
@@ -479,22 +489,25 @@ PointerJumpStubCreator getPointerJumpStubCreator(const Triple &TT) {
}
Expected<std::unique_ptr<LinkGraph>>
-createLinkGraphFromObject(MemoryBufferRef ObjectBuffer) {
+createLinkGraphFromObject(MemoryBufferRef ObjectBuffer,
+ std::shared_ptr<orc::SymbolStringPool> SSP) {
auto Magic = identify_magic(ObjectBuffer.getBuffer());
switch (Magic) {
case file_magic::macho_object:
- return createLinkGraphFromMachOObject(ObjectBuffer);
+ return createLinkGraphFromMachOObject(ObjectBuffer, SSP);
case file_magic::elf_relocatable:
- return createLinkGraphFromELFObject(ObjectBuffer);
+ return createLinkGraphFromELFObject(ObjectBuffer, SSP);
case file_magic::coff_object:
- return createLinkGraphFromCOFFObject(ObjectBuffer);
+ return createLinkGraphFromCOFFObject(ObjectBuffer, SSP);
----------------
lhames wrote:
```c++
std::move(SSP)
```
https://github.com/llvm/llvm-project/pull/115796
More information about the llvm-commits
mailing list