Skip to content

Commit 183883d

Browse files
committed
resolve PR comments
1 parent 69908e3 commit 183883d

File tree

4 files changed

+10
-12
lines changed

4 files changed

+10
-12
lines changed

llvm/lib/Object/OffloadBundle.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,17 +89,17 @@ Error OffloadBundleFatBin::readEntries(StringRef Buffer,
8989
uint64_t EntryIDSize;
9090
StringRef EntryID;
9191

92-
if (Error EC = Reader.readInteger(EntryOffset))
93-
return EC;
92+
if (Error Err = Reader.readInteger(EntryOffset))
93+
return Err;
9494

95-
if (Error EC = Reader.readInteger(EntrySize))
96-
return EC;
95+
if (Error Err = Reader.readInteger(EntrySize))
96+
return Err;
9797

98-
if (Error EC = Reader.readInteger(EntryIDSize))
99-
return EC;
98+
if (Error Err = Reader.readInteger(EntryIDSize))
99+
return Err;
100100

101-
if (Error EC = Reader.readFixedString(EntryID, EntryIDSize))
102-
return EC;
101+
if (Error Err = Reader.readFixedString(EntryID, EntryIDSize))
102+
return Err;
103103

104104
auto Entry = std::make_unique<OffloadBundleEntry>(
105105
EntryOffset + SectionOffset, EntrySize, EntryIDSize, EntryID);

llvm/test/tools/llvm-readobj/ELF/AMDGPU/offloading-fail.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
## Test that --offloading with a fatbin works correctly.
2-
# REQUIRES: target={{x86_64-.*-linux.*}}
32
# REQUIRES: amdgpu-registered-target
43

54
# RUN: yaml2obj %s -o %t.elf

llvm/test/tools/llvm-readobj/ELF/AMDGPU/offloading.test

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
## Test that --offloading with a fatbin works correctly.
2-
# REQUIRES: target={{x86_64-.*-linux.*}}
32
# REQUIRES: amdgpu-registered-target
43

54
# RUN: yaml2obj %s -o %t.elf

llvm/tools/llvm-readobj/llvm-readobj.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ static bool HashHistogram;
135135
static bool Memtag;
136136
static bool NeededLibraries;
137137
static bool Notes;
138+
static bool Offloading;
138139
static bool ProgramHeaders;
139140
static bool SectionGroups;
140141
static bool VersionInfo;
141-
static bool Offloading;
142142

143143
// Mach-O specific options.
144144
static bool MachODataInCode;
@@ -273,6 +273,7 @@ static void parseOptions(const opt::InputArgList &Args) {
273273
opts::Memtag = Args.hasArg(OPT_memtag);
274274
opts::NeededLibraries = Args.hasArg(OPT_needed_libs);
275275
opts::Notes = Args.hasArg(OPT_notes);
276+
opts::Offloading = Args.hasArg(OPT_offloading);
276277
opts::PrettyPrint = Args.hasArg(OPT_pretty_print);
277278
opts::ProgramHeaders = Args.hasArg(OPT_program_headers);
278279
opts::SectionGroups = Args.hasArg(OPT_section_groups);
@@ -289,7 +290,6 @@ static void parseOptions(const opt::InputArgList &Args) {
289290
}
290291
}
291292
opts::VersionInfo = Args.hasArg(OPT_version_info);
292-
opts::Offloading = Args.hasArg(OPT_offloading);
293293

294294
// Mach-O specific options.
295295
opts::MachODataInCode = Args.hasArg(OPT_macho_data_in_code);

0 commit comments

Comments
 (0)