about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
diff options
context:
space:
mode:
authorDylan DPC <dylan.dpc@gmail.com>2020-10-07 00:16:14 +0200
committerGitHub <noreply@github.com>2020-10-07 00:16:14 +0200
commit1b056157e92e9a6a44ed0fc7c11ada1a47884df2 (patch)
treefa499d756a3d5557cf9c35bbbe6f60feef6f05a7 /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp
parent207832bdc04da0859475f9364ec24198c6ec6849 (diff)
parentc5bc95676bf2063c54b3f010fc713d95b4e4dd68 (diff)
downloadrust-1b056157e92e9a6a44ed0fc7c11ada1a47884df2.tar.gz
rust-1b056157e92e9a6a44ed0fc7c11ada1a47884df2.zip
Rollup merge of #77614 - khyperia:set_span, r=eddyb
Let backends access span information

Sometimes, a backend may need to emit warnings, errors, or otherwise need to know the span of the current item in a basic block. So, add a `set_span` method to give the backend that information.

The `set_source_location` method already partially does this, however, it's disabled when debug info is disabled. There needs to be a way to unconditionally provide the span.
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions