File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ static uint64_t getSectionLMA(const ELFFile<ELFT> *Obj,
131
131
const object::ELFSectionRef &Sec) {
132
132
auto PhdrRangeOrErr = Obj->program_headers ();
133
133
if (!PhdrRangeOrErr)
134
- report_fatal_error (errorToErrorCode (PhdrRangeOrErr.takeError ()). message ( ));
134
+ report_fatal_error (toString (PhdrRangeOrErr.takeError ()));
135
135
136
136
// Search for a PT_LOAD segment containing the requested section. Use this
137
137
// segment's p_addr to calculate the section's LMA.
@@ -178,7 +178,7 @@ void printDynamicSection(const ELFFile<ELFT> *Elf, StringRef Filename) {
178
178
outs () << (Data + Dyn.d_un .d_val ) << " \n " ;
179
179
continue ;
180
180
}
181
- warn (errorToErrorCode (StrTabOrErr.takeError ()). message ( ));
181
+ warn (toString (StrTabOrErr.takeError ()));
182
182
consumeError (StrTabOrErr.takeError ());
183
183
}
184
184
outs () << format (Fmt, (uint64_t )Dyn.d_un .d_val );
@@ -189,8 +189,7 @@ template <class ELFT> void printProgramHeaders(const ELFFile<ELFT> *o) {
189
189
outs () << " Program Header:\n " ;
190
190
auto ProgramHeaderOrError = o->program_headers ();
191
191
if (!ProgramHeaderOrError)
192
- report_fatal_error (
193
- errorToErrorCode (ProgramHeaderOrError.takeError ()).message ());
192
+ report_fatal_error (toString (ProgramHeaderOrError.takeError ()));
194
193
for (const typename ELFT::Phdr &Phdr : *ProgramHeaderOrError) {
195
194
switch (Phdr.p_type ) {
196
195
case ELF::PT_DYNAMIC:
You can’t perform that action at this time.
0 commit comments