codegen_llvm: whitespace & formatting improvements

This commit is contained in:
ljedrz 2018-10-08 16:52:34 +02:00
parent ef5c00d0ca
commit 61f47737b5
13 changed files with 69 additions and 80 deletions

View file

@ -110,10 +110,10 @@ impl Builder<'a, 'll, 'tcx> {
}
if self.cx.sess().count_llvm_insns() {
*self.cx.stats
.borrow_mut()
.llvm_insns
.entry(category.to_string())
.or_insert(0) += 1;
.borrow_mut()
.llvm_insns
.entry(category.to_string())
.or_insert(0) += 1;
}
}
@ -735,9 +735,9 @@ impl Builder<'a, 'll, 'tcx> {
}
pub fn inline_asm_call(&self, asm: *const c_char, cons: *const c_char,
inputs: &[&'ll Value], output: &'ll Type,
volatile: bool, alignstack: bool,
dia: AsmDialect) -> Option<&'ll Value> {
inputs: &[&'ll Value], output: &'ll Type,
volatile: bool, alignstack: bool,
dia: AsmDialect) -> Option<&'ll Value> {
self.count_insn("inlineasm");
let volatile = if volatile { llvm::True }
@ -1093,7 +1093,7 @@ impl Builder<'a, 'll, 'tcx> {
) -> &'ll Value {
unsafe {
llvm::LLVMRustBuildAtomicCmpXchg(self.llbuilder, dst, cmp, src,
order, failure_order, weak)
order, failure_order, weak)
}
}
pub fn atomic_rmw(