summaryrefslogtreecommitdiff
path: root/view/sharedcache/core/SharedCache.cpp
diff options
context:
space:
mode:
authorWeiN76LQh <WeiN76LQh@github.com>2025-01-03 17:55:10 +0000
committerMason Reed <mason@vector35.com>2025-04-02 05:36:54 -0400
commitee500220baa1a46f3d7ca1486fa43dc1587f20d0 (patch)
treeee3e1549997e60849f040f5745cdac8840f25303 /view/sharedcache/core/SharedCache.cpp
parent90e9ff91f02f2cb902bf0564de1f403e23172f36 (diff)
[ObjC] Create a shared ObjC processor for Macho and DSC views
Both the Macho and DSC views need to process Objective-C but have separate processor classes. It would appear that the DSC version was largely a copy and paste of the Macho view one, with some modifications. The majority of code overlaps between the 2 so it doesn't make sense to maintain 2 and copy and paste improvements/fixes between them. This commit fixes that by creating a base Objective-C processor that contains the shared code. View specific code is implemented in the respective subclasses for the views. Although there is very little view specific code for each.
Diffstat (limited to 'view/sharedcache/core/SharedCache.cpp')
-rw-r--r--view/sharedcache/core/SharedCache.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/view/sharedcache/core/SharedCache.cpp b/view/sharedcache/core/SharedCache.cpp
index 5709759b..2b18c064 100644
--- a/view/sharedcache/core/SharedCache.cpp
+++ b/view/sharedcache/core/SharedCache.cpp
@@ -1673,9 +1673,9 @@ static void ProcessObjCSectionsForImageWithName(std::string baseName, std::share
try
{
if (processObjCMetadata)
- objc->ProcessObjCData(vm, baseName);
+ objc->ProcessObjCData(baseName);
if (processCFStrings)
- objc->ProcessCFStrings(vm, baseName);
+ objc->ProcessCFStrings(baseName);
}
catch (const std::exception& ex)
{