Skip to content

Commit ed53cd7

Browse files
authored
Merge pull request #1 from dcci/newmirr
[swift-refl-dump] Make sure we own the object before adding reflectio…
2 parents 6468322 + 7ff930e commit ed53cd7

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

tools/swift-reflection-dump/swift-reflection-dump.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -248,15 +248,11 @@ static int doDumpReflectionSections(ArrayRef<std::string> binaryFilenames,
248248
objectFile = objectOwner.get();
249249
}
250250

251-
#if 0
252-
context.addReflectionInfo(findReflectionInfo(objectFile));
253-
#endif
254-
context.addImage(RemoteAddress((uint64_t)(objectFile->getData().begin())));
255-
256251
// Retain the objects that own section memory
257252
binaryOwners.push_back(std::move(binaryOwner));
258253
objectOwners.push_back(std::move(objectOwner));
259254
objectFiles.push_back(objectFile);
255+
context.addImage(RemoteAddress((uint64_t)(objectFile->getData().begin())));
260256
}
261257

262258
switch (action) {

0 commit comments

Comments
 (0)