File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff 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+
206207uint32_t llvm::object::getELFRelativeRelocationType (uint32_t Machine) {
207208 switch (Machine) {
208209 case ELF::EM_X86_64:
You can’t perform that action at this time.
0 commit comments