llvm-project/llvm/lib/Target/Sparc/MCTargetDesc
Rainer Orth a584b1a4d1 [Sparc] Implement BFD_RELOC_NONE
`instrprof-icall-promo.test` `FAIL`s on Solaris/sparcv9:

  Profile-sparc :: instrprof-icall-promo.test
  Profile-sparcv9 :: instrprof-icall-promo.test

when compiling `compiler-rt/test/profile/Inputs/instrprof-icall-promo_2.cpp` with

  fatal error: error in backend: Relocation for CG Profile could not be created: unknown relocation name

This happens because the Sparc backend doesn't implement `BFD_RELOC_NONE`.
This patch fixes that, following what X86 does.

Tested on `sparcv9-sun-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D118136
2022-01-28 10:44:22 +01:00
..
CMakeLists.txt
SparcAsmBackend.cpp [Sparc] Implement BFD_RELOC_NONE 2022-01-28 10:44:22 +01:00
SparcELFObjectWriter.cpp [Sparc] Implement BFD_RELOC_NONE 2022-01-28 10:44:22 +01:00
SparcFixupKinds.h
SparcInstPrinter.cpp
SparcInstPrinter.h
SparcMCAsmInfo.cpp
SparcMCAsmInfo.h
SparcMCCodeEmitter.cpp
SparcMCExpr.cpp
SparcMCExpr.h
SparcMCTargetDesc.cpp Move TargetRegistry.(h|cpp) from Support to MC 2021-10-08 14:51:48 -07:00
SparcMCTargetDesc.h
SparcTargetStreamer.cpp
SparcTargetStreamer.h