mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-03 10:54:42 +00:00
[llvm-objcopy] [COFF] Fix warnings abuilt missing field initialization. NFC.
llvm-svn: 350898
This commit is contained in:
parent
a112e209cc
commit
c54b9bd756
@ -25,6 +25,9 @@ namespace objcopy {
|
||||
namespace coff {
|
||||
|
||||
struct Relocation {
|
||||
Relocation() {}
|
||||
Relocation(const object::coff_relocation& R) : Reloc(R) {}
|
||||
|
||||
object::coff_relocation Reloc;
|
||||
size_t Target;
|
||||
StringRef TargetName; // Used for diagnostics only
|
||||
|
@ -73,7 +73,7 @@ Error COFFReader::readSections(Object &Obj) const {
|
||||
return errorCodeToError(EC);
|
||||
ArrayRef<coff_relocation> Relocs = COFFObj.getRelocations(Sec);
|
||||
for (const coff_relocation &R : Relocs)
|
||||
S.Relocs.push_back(Relocation{R});
|
||||
S.Relocs.push_back(R);
|
||||
if (auto EC = COFFObj.getSectionName(Sec, S.Name))
|
||||
return errorCodeToError(EC);
|
||||
if (Sec->hasExtendedRelocations())
|
||||
|
Loading…
x
Reference in New Issue
Block a user