about summary refs log tree commit diff
path: root/compiler/rustc_mir_transform/src
diff options
context:
space:
mode:
authorDaniel Paoliello <danpao@microsoft.com>2021-08-31 11:16:10 -0700
committerDaniel Paoliello <danpao@microsoft.com>2021-08-31 15:24:20 -0700
commit77a96ed5646f7c3ee8897693decc4626fe380643 (patch)
treec865c4236b8532d76f89f51310ac5afe7e0024ae /compiler/rustc_mir_transform/src
parent6cfa773583bb5123e630668f5bfe466716225546 (diff)
downloadrust-77a96ed5646f7c3ee8897693decc4626fe380643.tar.gz
rust-77a96ed5646f7c3ee8897693decc4626fe380643.zip
Include debug info for the allocator shim
Issue Details:
In some cases it is necessary to generate an "allocator shim" to forward various Rust allocation functions (e.g., `__rust_alloc`) to an underlying function (e.g., `malloc`). However, since this allocator shim is a manually created LLVM module it is not processed via the normal module processing code and so no debug info is generated for it (if debugging info is enabled).

Fix Details:
* Modify the `debuginfo` code to allow creating debug info for a module without a `CodegenCx` (since it is difficult, and expensive, to create one just to emit some debug info).
* After creating the allocator shim add in basic debug info.
Diffstat (limited to 'compiler/rustc_mir_transform/src')
0 files changed, 0 insertions, 0 deletions