replace LLVMRustMetadataAsValue with LLVMMetadataAsValue
This commit is contained in:
parent
7d6181e4d8
commit
c53a9faa6f
3 changed files with 2 additions and 6 deletions
|
@ -882,7 +882,7 @@ pub fn build_compile_unit_di_node<'ll, 'tcx>(
|
|||
|
||||
if tcx.sess.opts.unstable_opts.profile {
|
||||
let cu_desc_metadata =
|
||||
llvm::LLVMRustMetadataAsValue(debug_context.llcontext, unit_metadata);
|
||||
llvm::LLVMMetadataAsValue(debug_context.llcontext, unit_metadata);
|
||||
let default_gcda_path = &output_filenames.with_extension("gcda");
|
||||
let gcda_path =
|
||||
tcx.sess.opts.unstable_opts.profile_emit.as_ref().unwrap_or(default_gcda_path);
|
||||
|
|
|
@ -1916,7 +1916,7 @@ extern "C" {
|
|||
);
|
||||
pub fn LLVMRustHasModuleFlag(M: &Module, name: *const c_char, len: size_t) -> bool;
|
||||
|
||||
pub fn LLVMRustMetadataAsValue<'a>(C: &'a Context, MD: &'a Metadata) -> &'a Value;
|
||||
pub fn LLVMMetadataAsValue<'a>(C: &'a Context, MD: &'a Metadata) -> &'a Value;
|
||||
|
||||
pub fn LLVMRustDIBuilderCreate(M: &Module) -> &mut DIBuilder<'_>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue