about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-28 18:39:40 +0200
committerGitHub <noreply@github.com>2020-09-28 18:39:40 +0200
commit952ec7d06660277dedf3436a9f50952a9caa6523 (patch)
tree33f77ab87de75f0be3867c8ce61aa4225a3bcf92 /compiler/rustc_codegen_llvm/src
parent7072e45c6c7c480b66a3be72138a2b29117c039f (diff)
parent210e89198d72108fbba6de3fa539a8a92c1e7213 (diff)
downloadrust-952ec7d06660277dedf3436a9f50952a9caa6523.tar.gz
rust-952ec7d06660277dedf3436a9f50952a9caa6523.zip
Rollup merge of #76474 - bjorn3:driver_selected_codegen, r=oli-obk
Add option to pass a custom codegen backend from a driver

This allows the driver to pass information to the codegen backend. For example the headcrab debugger may in the future want to use cg_clif to JIT code to be injected in the debuggee. This would PR make it possible to tell cg_clif which symbol can be found at which address and to tell it to inject the JITed code into the right process.

This PR may also help with https://github.com/rust-lang/miri/pull/1540 by allowing miri to provide a codegen backend that only emits metadata and doesn't perform any codegen.

cc @nbaksalyar (headcrab)
cc @RalfJung (miri)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions