A couple of tests FAIL on Solaris/sparcv9 with
Unsupported CPU type! UNREACHABLE executed at /vol/llvm/src/llvm-project/dist/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyldELF.cpp:1067!
Fixed by adding SPARC support to RuntimeDyld.
Tested on sparcv9-sun-solaris2.11.
Authored-By: Stefan Teleman <stefan.teleman@oracle.com>
The patch has been available from 033-solaris-LLVM-JIT.patch for quite a while. I've learned from my contacts in Oracle Solaris Engineering that it had originally been developed for LLVM 3.8.1 by Stefan Teleman while working at Oracle. They are fine with me submitting it upstream.
I had to make a few changes to that patch:
- Formatting fixes
- Remove unused variables
- Undo the getFileFormatName changes in ELFObjectFile.h which broke ELFObjectFileTest.MachineTestForSPARC*