mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[swift-reflection-dump] Use the new API for MachO.
<rdar://problem/42306551>
This commit is contained in:
@@ -263,7 +263,12 @@ static int doDumpReflectionSections(ArrayRef<std::string> binaryFilenames,
|
||||
objectOwners.push_back(std::move(objectOwner));
|
||||
objectFiles.push_back(objectFile);
|
||||
|
||||
#if defined(__APPLE__)
|
||||
auto startAddress = (uintptr_t)objectFile->getData().begin();
|
||||
context.addImage(RemoteAddress(startAddress));
|
||||
#else
|
||||
context.addReflectionInfo(findReflectionInfo(objectFile));
|
||||
#endif
|
||||
}
|
||||
|
||||
switch (action) {
|
||||
|
||||
Reference in New Issue
Block a user