Mercurial > projects > ldc
comparison gen/asmstmt.cpp @ 1037:1d8a8ecf14e1
remove memory clobber again ...
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Tue, 03 Mar 2009 19:27:23 +0100 |
parents | 01544da4cdd8 |
children | 11e28922ac76 |
comparison
equal
deleted
inserted
replaced
1036:01544da4cdd8 | 1037:1d8a8ecf14e1 |
---|---|
592 jump_target = DtoAlloca(LLType::Int32Ty, "__llvm_jump_target"); | 592 jump_target = DtoAlloca(LLType::Int32Ty, "__llvm_jump_target"); |
593 gIR->ir->CreateStore(DtoConstUint(0), jump_target); | 593 gIR->ir->CreateStore(DtoConstUint(0), jump_target); |
594 // setup variable for output from asm | 594 // setup variable for output from asm |
595 outSetterStmt->out_c = "=*m,"; | 595 outSetterStmt->out_c = "=*m,"; |
596 outSetterStmt->out.push_back(jump_target); | 596 outSetterStmt->out.push_back(jump_target); |
597 asmblock->clobs.insert("~{memory},"); | |
598 | 597 |
599 asmblock->s.push_back(outSetterStmt); | 598 asmblock->s.push_back(outSetterStmt); |
600 } | 599 } |
601 else | 600 else |
602 delete outSetterStmt; | 601 delete outSetterStmt; |