Skip to content

Commit e195056

Browse files
committed
Update style for review feedback.
1 parent 2a4d6d4 commit e195056

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

llvm/lib/Object/ELF.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -191,18 +191,19 @@ StringRef llvm::object::getELFRelocationTypeName(uint32_t Machine,
191191

192192
#undef ELF_RELOC
193193

194+
StringRef llvm::object::getRISCVVendorRelocationTypeName(uint32_t Type,
195+
StringRef Vendor) {
194196
#define ELF_RISCV_NONSTANDARD_RELOC(vendor, name, number) \
195197
if (Vendor == #vendor && Type == number) \
196198
return #name;
197199

198-
StringRef llvm::object::getRISCVVendorRelocationTypeName(uint32_t Type,
199-
StringRef Vendor) {
200200
#include "llvm/BinaryFormat/ELFRelocs/RISCV_nonstandard.def"
201-
return "Unknown";
202-
}
203201

204202
#undef ELF_RISCV_NONSTANDARD_RELOC
205203

204+
return "Unknown";
205+
}
206+
206207
uint32_t llvm::object::getELFRelativeRelocationType(uint32_t Machine) {
207208
switch (Machine) {
208209
case ELF::EM_X86_64:

0 commit comments

Comments
 (0)