Skip to content

Commit 8474bb0

Browse files
committed
Add trait methods for experimental retags to cg.
1 parent 6d648f3 commit 8474bb0

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

src/intrinsic/mod.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ use std::iter;
66

77
use gccjit::{ComparisonOp, Function, FunctionType, RValue, ToRValue, Type, UnaryOp};
88
use rustc_abi::{BackendRepr, HasDataLayout, WrappingRange};
9-
use rustc_codegen_ssa::MemFlags;
109
use rustc_codegen_ssa::base::wants_msvc_seh;
1110
use rustc_codegen_ssa::common::IntPredicate;
1211
use rustc_codegen_ssa::errors::InvalidMonomorphization;
@@ -18,6 +17,7 @@ use rustc_codegen_ssa::traits::{
1817
ArgAbiBuilderMethods, BaseTypeCodegenMethods, BuilderMethods, ConstCodegenMethods,
1918
IntrinsicCallBuilderMethods, LayoutTypeCodegenMethods,
2019
};
20+
use rustc_codegen_ssa::{MemFlags, RetagInfo};
2121
use rustc_data_structures::fx::FxHashSet;
2222
#[cfg(feature = "master")]
2323
use rustc_middle::ty::layout::FnAbiOf;
@@ -702,6 +702,14 @@ impl<'a, 'gcc, 'tcx> IntrinsicCallBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tc
702702
// FIXME(antoyo): implement.
703703
self.context.new_rvalue_from_int(self.int_type, 0)
704704
}
705+
706+
fn retag_reg(&mut self, _ptr: Self::Value, _info: &RetagInfo<Self::Value>) -> Self::Value {
707+
unimplemented!()
708+
}
709+
710+
fn retag_mem(&mut self, _ptr: Self::Value, _info: &RetagInfo<Self::Value>) {
711+
unimplemented!()
712+
}
705713
}
706714

707715
impl<'a, 'gcc, 'tcx> ArgAbiBuilderMethods<'tcx> for Builder<'a, 'gcc, 'tcx> {

0 commit comments

Comments
 (0)