The personality function is a Function, not a Value
This commit is contained in:
@@ -514,11 +514,11 @@ pub trait BuilderMethods<'a, 'tcx>:
|
|||||||
fn extract_value(&mut self, agg_val: Self::Value, idx: u64) -> Self::Value;
|
fn extract_value(&mut self, agg_val: Self::Value, idx: u64) -> Self::Value;
|
||||||
fn insert_value(&mut self, agg_val: Self::Value, elt: Self::Value, idx: u64) -> Self::Value;
|
fn insert_value(&mut self, agg_val: Self::Value, elt: Self::Value, idx: u64) -> Self::Value;
|
||||||
|
|
||||||
fn set_personality_fn(&mut self, personality: Self::Value);
|
fn set_personality_fn(&mut self, personality: Self::Function);
|
||||||
|
|
||||||
// These are used by everyone except msvc
|
// These are used by everyone except msvc
|
||||||
fn cleanup_landing_pad(&mut self, pers_fn: Self::Value) -> (Self::Value, Self::Value);
|
fn cleanup_landing_pad(&mut self, pers_fn: Self::Function) -> (Self::Value, Self::Value);
|
||||||
fn filter_landing_pad(&mut self, pers_fn: Self::Value) -> (Self::Value, Self::Value);
|
fn filter_landing_pad(&mut self, pers_fn: Self::Function) -> (Self::Value, Self::Value);
|
||||||
fn resume(&mut self, exn0: Self::Value, exn1: Self::Value);
|
fn resume(&mut self, exn0: Self::Value, exn1: Self::Value);
|
||||||
|
|
||||||
// These are used only by msvc
|
// These are used only by msvc
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ pub trait MiscCodegenMethods<'tcx>: BackendTypes {
|
|||||||
}
|
}
|
||||||
fn get_fn(&self, instance: Instance<'tcx>) -> Self::Function;
|
fn get_fn(&self, instance: Instance<'tcx>) -> Self::Function;
|
||||||
fn get_fn_addr(&self, instance: Instance<'tcx>) -> Self::Value;
|
fn get_fn_addr(&self, instance: Instance<'tcx>) -> Self::Value;
|
||||||
fn eh_personality(&self) -> Self::Value;
|
fn eh_personality(&self) -> Self::Function;
|
||||||
fn sess(&self) -> &Session;
|
fn sess(&self) -> &Session;
|
||||||
fn set_frame_pointer_type(&self, llfn: Self::Function);
|
fn set_frame_pointer_type(&self, llfn: Self::Function);
|
||||||
fn apply_target_cpu_attr(&self, llfn: Self::Function);
|
fn apply_target_cpu_attr(&self, llfn: Self::Function);
|
||||||
|
|||||||
Reference in New Issue
Block a user