]> git.lizzy.rs Git - rust.git/blob - src/debuginfo.rs
Disable long running libcore tests
[rust.git] / src / debuginfo.rs
1 use gccjit::RValue;
2 use rustc_codegen_ssa::mir::debuginfo::{FunctionDebugContext, VariableKind};
3 use rustc_codegen_ssa::traits::{DebugInfoBuilderMethods, DebugInfoMethods};
4 use rustc_middle::mir;
5 use rustc_middle::ty::{Instance, PolyExistentialTraitRef, Ty};
6 use rustc_span::{SourceFile, Span, Symbol};
7 use rustc_target::abi::Size;
8 use rustc_target::abi::call::FnAbi;
9
10 use crate::builder::Builder;
11 use crate::context::CodegenCx;
12
13 impl<'a, 'gcc, 'tcx> DebugInfoBuilderMethods for Builder<'a, 'gcc, 'tcx> {
14     // FIXME(eddyb) find a common convention for all of the debuginfo-related
15     // names (choose between `dbg`, `debug`, `debuginfo`, `debug_info` etc.).
16     fn dbg_var_addr(&mut self, _dbg_var: Self::DIVariable, _scope_metadata: Self::DIScope, _variable_alloca: Self::Value, _direct_offset: Size, _indirect_offsets: &[Size]) {
17         unimplemented!();
18     }
19
20     fn insert_reference_to_gdb_debug_scripts_section_global(&mut self) {
21         // TODO(antoyo): insert reference to gdb debug scripts section global.
22     }
23
24     fn set_var_name(&mut self, _value: RValue<'gcc>, _name: &str) {
25         unimplemented!();
26     }
27
28     fn set_dbg_loc(&mut self, _dbg_loc: Self::DILocation) {
29         unimplemented!();
30     }
31 }
32
33 impl<'gcc, 'tcx> DebugInfoMethods<'tcx> for CodegenCx<'gcc, 'tcx> {
34     fn create_vtable_metadata(&self, _ty: Ty<'tcx>, _trait_ref: Option<PolyExistentialTraitRef<'tcx>>, _vtable: Self::Value) {
35         // TODO(antoyo)
36     }
37
38     fn create_function_debug_context(&self, _instance: Instance<'tcx>, _fn_abi: &FnAbi<'tcx, Ty<'tcx>>, _llfn: RValue<'gcc>, _mir: &mir::Body<'tcx>) -> Option<FunctionDebugContext<Self::DIScope, Self::DILocation>> {
39         // TODO(antoyo)
40         None
41     }
42
43     fn extend_scope_to_file(&self, _scope_metadata: Self::DIScope, _file: &SourceFile) -> Self::DIScope {
44         unimplemented!();
45     }
46
47     fn debuginfo_finalize(&self) {
48         // TODO(antoyo)
49     }
50
51     fn create_dbg_var(&self, _variable_name: Symbol, _variable_type: Ty<'tcx>, _scope_metadata: Self::DIScope, _variable_kind: VariableKind, _span: Span) -> Self::DIVariable {
52         unimplemented!();
53     }
54
55     fn dbg_scope_fn(&self, _instance: Instance<'tcx>, _fn_abi: &FnAbi<'tcx, Ty<'tcx>>, _maybe_definition_llfn: Option<RValue<'gcc>>) -> Self::DIScope {
56         unimplemented!();
57     }
58
59     fn dbg_loc(&self, _scope: Self::DIScope, _inlined_at: Option<Self::DILocation>, _span: Span) -> Self::DILocation {
60         unimplemented!();
61     }
62 }