Removed genericity over Value in various functions
Prelude to using associated types in traits rather than type parameters
This commit is contained in:
parent
1ca750683e
commit
9c41e1aa10
20 changed files with 165 additions and 194 deletions
|
@ -127,7 +127,7 @@ pub fn llvm_target_features(sess: &Session) -> impl Iterator<Item = &str> {
|
|||
.filter(|l| !l.is_empty())
|
||||
}
|
||||
|
||||
pub fn apply_target_cpu_attr(cx: &CodegenCx<'ll, '_, &'ll Value>, llfn: &'ll Value) {
|
||||
pub fn apply_target_cpu_attr(cx: &CodegenCx<'ll, '_>, llfn: &'ll Value) {
|
||||
let cpu = llvm_util::target_cpu(cx.tcx.sess);
|
||||
let target_cpu = CString::new(cpu).unwrap();
|
||||
llvm::AddFunctionAttrStringValue(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue