Mercurial > projects > ldc
comparison gen/asmstmt.cpp @ 479:672eb4893b55
Move AllocaInst creation into DtoAlloca helper. Will enable special zero-init of fp80 reals' padding.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Tue, 05 Aug 2008 19:28:19 +0200 |
parents | 44daf304421c |
children | 2fe2d4518618 |
comparison
equal
deleted
inserted
replaced
478:b657298222d9 | 479:672eb4893b55 |
---|---|
533 // finalize code | 533 // finalize code |
534 outSetterStmt->code = code.str(); | 534 outSetterStmt->code = code.str(); |
535 outSetterStmt->code += asmGotoEndLabel.str()+": ; "; | 535 outSetterStmt->code += asmGotoEndLabel.str()+": ; "; |
536 | 536 |
537 // create storage for and initialize the temporary | 537 // create storage for and initialize the temporary |
538 jump_target = new llvm::AllocaInst(llvm::IntegerType::get(32), "__llvm_jump_target", p->topallocapoint()); | 538 jump_target = DtoAlloca(LLType::Int32Ty, "__llvm_jump_target"); |
539 gIR->ir->CreateStore(DtoConstUint(0), jump_target); | 539 gIR->ir->CreateStore(DtoConstUint(0), jump_target); |
540 // setup variable for output from asm | 540 // setup variable for output from asm |
541 outSetterStmt->out_c = "=*m,"; | 541 outSetterStmt->out_c = "=*m,"; |
542 outSetterStmt->out.push_back(jump_target); | 542 outSetterStmt->out.push_back(jump_target); |
543 | 543 |