diff options
| author | Mason Reed <mason@vector35.com> | 2025-03-07 21:36:46 -0500 |
|---|---|---|
| committer | Mason Reed <mason@vector35.com> | 2025-04-02 05:36:54 -0400 |
| commit | fa85bf28502286c4821427c5d0ed91a7ed46f8f6 (patch) | |
| tree | cb2933fc54948d3b1972429e9ff9bcdb852f2d9a /view/sharedcache/core/DSCView.cpp | |
| parent | 4b3eff012c9c6a61ab58cecfc8af1fe23b870541 (diff) | |
[SharedCache] Use DefineAutoUserSymbol instead of DefineAutoSymbol
This makes it so that we persist the symbols within the regular symbol list in storage
Diffstat (limited to 'view/sharedcache/core/DSCView.cpp')
| -rw-r--r-- | view/sharedcache/core/DSCView.cpp | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/view/sharedcache/core/DSCView.cpp b/view/sharedcache/core/DSCView.cpp index c8f49378..add2faff 100644 --- a/view/sharedcache/core/DSCView.cpp +++ b/view/sharedcache/core/DSCView.cpp @@ -614,32 +614,6 @@ bool DSCView::Init() Ref<Type> filesetEntryCommandType = Type::StructureType(filesetEntryCommandStruct); DefineType(filesetEntryCommandTypeId, filesetEntryCommandName, filesetEntryCommandType); - if (auto metadata = SharedCacheCore::SharedCacheMetadata::LoadFromView(this)) - { - BeginBulkModifySymbols(); - for (const auto& [imageBaseAddr, exportMap] : metadata->ExportInfos()) - { - auto typelib = GetTypeLibrary(metadata->InstallNameForImageBaseAddress(imageBaseAddr)); - - for (const auto& [address, symbol] : *exportMap) - { - if (!IsValidOffset(address)) - continue; - - if (typelib) - { - if (auto type = typelib->GetNamedObject(symbol->GetFullName())) - { - DefineAutoSymbolAndVariableOrFunction(GetDefaultPlatform(), symbol, type); - continue; - } - } - DefineAutoSymbol(symbol); - } - } - EndBulkModifySymbols(); - } - // uint32_t at 0x10 is offset to mapping table. // first mapping struct in that table is base of primary // first uint64_t in that struct is the base address of the primary |
