llvm-project/clang/lib/Driver
Hafiz Abid Qadeer 45ba2392d7 [clang][Driver] Handle risvc in Baremetal.cpp.
I am working on a baremetal riscv toolchain using LLVM runtime and
LLD linker. Baremetal.cpp provides most of the things needed for such
toolchain. So I have modified it to also handle riscv64/32-unknown-elf
 targets alongside arm-none-eabi.

Currently, targets like riscv64-unknown-elf are handled by RISCVToolChain
which mostly expects a gcc toolchain to be present. If you dont
want the dependency on gcc-toolchain/libgloss or want to use LLD, then
RISCVToolChain is not a good fit.

So in the toolchain selection code, I have made this dependency of
RISCVToolChain on gcc toolchain explicit. It is created if gcc-toolchain
option is present. Otherwise Baremetal toolchain is created. I will be
happy to hear if there is a better way to choose between these two
toolchains.

Reviewed By: jroelofs

Differential Revision: https://reviews.llvm.org/D91442
2020-11-26 11:43:17 +00:00
..
ToolChains [clang][Driver] Handle risvc in Baremetal.cpp. 2020-11-26 11:43:17 +00:00
Action.cpp Add Statically Linked Libraries 2020-06-22 19:48:49 +00:00
CMakeLists.txt [SystemZ][z/OS] Adding initial toolchain for z/OS 2020-09-01 10:15:01 -04:00
Compilation.cpp [Driver] Add callback to Command execution 2020-11-05 12:21:40 +07:00
DarwinSDKInfo.cpp
Distro.cpp Add support of the next Ubuntu (Ubuntu 21.04 - Hirsute Hippo) 2020-10-29 19:11:32 +01:00
Driver.cpp [clang][Driver] Handle risvc in Baremetal.cpp. 2020-11-26 11:43:17 +00:00
DriverOptions.cpp
InputInfo.h
Job.cpp [Driver] Add option -fproc-stat-report 2020-11-13 14:15:42 +07:00
Multilib.cpp
OptionUtils.cpp
Phases.cpp
SanitizerArgs.cpp [MemProf] Pass down memory profile name with optional path from clang 2020-11-01 17:38:23 -08:00
Tool.cpp Clang Driver: refactor support for writing response files to be 2020-06-29 18:27:02 -04:00
ToolChain.cpp clang: Pass -platform-version to new MachO LLD 2020-11-24 11:16:03 -05:00
Types.cpp [Flang][Driver] Add infrastructure for basic frontend actions and file I/O 2020-10-24 14:58:32 +01:00
XRayArgs.cpp [xray] Function coverage groups 2020-09-24 22:09:53 -04:00