@@ -57,7 +57,7 @@ impl AsmBuilderMethods<'a, 'll, 'tcx> for Builder<'a, 'll, 'tcx, &'ll Value> {
57
57
58
58
// Default per-arch clobbers
59
59
// Basically what clang does
60
- let arch_clobbers = match & bx . sess ( ) . target . target . arch [ ..] {
60
+ let arch_clobbers = match & self . cx ( ) . sess ( ) . target . target . arch [ ..] {
61
61
"x86" | "x86_64" => vec ! [ "~{dirflag}" , "~{fpsr}" , "~{flags}" ] ,
62
62
"mips" | "mips64" => vec ! [ "~{$1}" ] ,
63
63
_ => Vec :: new ( )
@@ -76,14 +76,14 @@ impl AsmBuilderMethods<'a, 'll, 'tcx> for Builder<'a, 'll, 'tcx, &'ll Value> {
76
76
// Depending on how many outputs we have, the return type is different
77
77
let num_outputs = output_types. len ( ) ;
78
78
let output_type = match num_outputs {
79
- 0 => bx . cx ( ) . type_void ( ) ,
79
+ 0 => self . cx ( ) . type_void ( ) ,
80
80
1 => output_types[ 0 ] ,
81
- _ => bx . cx ( ) . type_struct ( & output_types, false )
81
+ _ => self . cx ( ) . type_struct ( & output_types, false )
82
82
} ;
83
83
84
84
let asm = CString :: new ( ia. asm . as_str ( ) . as_bytes ( ) ) . unwrap ( ) ;
85
85
let constraint_cstr = CString :: new ( all_constraints) . unwrap ( ) ;
86
- let r = bx . inline_asm_call (
86
+ let r = self . inline_asm_call (
87
87
asm. as_ptr ( ) ,
88
88
constraint_cstr. as_ptr ( ) ,
89
89
& inputs,
@@ -100,8 +100,8 @@ impl AsmBuilderMethods<'a, 'll, 'tcx> for Builder<'a, 'll, 'tcx, &'ll Value> {
100
100
// Again, based on how many outputs we have
101
101
let outputs = ia. outputs . iter ( ) . zip ( & outputs) . filter ( |& ( ref o, _) | !o. is_indirect ) ;
102
102
for ( i, ( _, & place) ) in outputs. enumerate ( ) {
103
- let v = if num_outputs == 1 { r } else { bx . extract_value ( r, i as u64 ) } ;
104
- OperandValue :: Immediate ( v) . store ( bx , place) ;
103
+ let v = if num_outputs == 1 { r } else { self . extract_value ( r, i as u64 ) } ;
104
+ OperandValue :: Immediate ( v) . store ( self , place) ;
105
105
}
106
106
107
107
// Store mark in a metadata node so we can map LLVM errors
@@ -116,9 +116,9 @@ impl AsmBuilderMethods<'a, 'll, 'tcx> for Builder<'a, 'll, 'tcx, &'ll Value> {
116
116
llvm:: LLVMSetMetadata ( r, kind,
117
117
llvm:: LLVMMDNodeInContext ( self . cx ( ) . llcx , & val, 1 ) ) ;
118
118
}
119
- }
120
119
121
120
return true ;
121
+ }
122
122
}
123
123
124
124
impl AsmMethods for CodegenCx < ' ll , ' tcx , & ' ll Value > {
0 commit comments