git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350898
91177308-0d34-0410-b5e6-
96231b3b80d8
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
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())