mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Fix swift-reflection-dump.cpp for recent LLVM changes
This commit is contained in:
@@ -183,7 +183,7 @@ private:
|
||||
|
||||
HeaderAddress = UINT64_MAX;
|
||||
|
||||
auto phdrs = O->getELFFile()->program_headers();
|
||||
auto phdrs = O->getELFFile().program_headers();
|
||||
if (!phdrs) {
|
||||
llvm::consumeError(phdrs.takeError());
|
||||
}
|
||||
@@ -209,7 +209,7 @@ private:
|
||||
if (!resolverSupports || !resolve)
|
||||
return;
|
||||
|
||||
auto machine = O->getELFFile()->getHeader().e_machine;
|
||||
auto machine = O->getELFFile().getHeader().e_machine;
|
||||
auto relativeRelocType = getELFRelativeRelocationType(machine);
|
||||
|
||||
for (auto &S : static_cast<const ELFObjectFileBase*>(O)
|
||||
|
||||
Reference in New Issue
Block a user