comparison gen/toir.cpp @ 858:ebbbf8c3ce93

Remove some dead code.
author Christian Kamm <kamm incasoftware de>
date Wed, 17 Dec 2008 21:03:06 +0100
parents 217e8c719a2f
children a719f2ca3e92
comparison
equal deleted inserted replaced
857:217e8c719a2f 858:ebbbf8c3ce93
1778 Logger::print("AndAndExp::toElem: %s | %s\n", toChars(), type->toChars()); 1778 Logger::print("AndAndExp::toElem: %s | %s\n", toChars(), type->toChars());
1779 LOG_SCOPE; 1779 LOG_SCOPE;
1780 1780
1781 // allocate a temporary for the final result. failed to come up with a better way :/ 1781 // allocate a temporary for the final result. failed to come up with a better way :/
1782 LLValue* resval = 0; 1782 LLValue* resval = 0;
1783 llvm::BasicBlock* entryblock = &p->topfunc()->front();
1784 resval = DtoAlloca(LLType::Int1Ty,"andandtmp"); 1783 resval = DtoAlloca(LLType::Int1Ty,"andandtmp");
1785 1784
1786 DValue* u = e1->toElem(p); 1785 DValue* u = e1->toElem(p);
1787 1786
1788 llvm::BasicBlock* oldend = p->scopeend(); 1787 llvm::BasicBlock* oldend = p->scopeend();
1814 Logger::print("OrOrExp::toElem: %s | %s\n", toChars(), type->toChars()); 1813 Logger::print("OrOrExp::toElem: %s | %s\n", toChars(), type->toChars());
1815 LOG_SCOPE; 1814 LOG_SCOPE;
1816 1815
1817 // allocate a temporary for the final result. failed to come up with a better way :/ 1816 // allocate a temporary for the final result. failed to come up with a better way :/
1818 LLValue* resval = 0; 1817 LLValue* resval = 0;
1819 llvm::BasicBlock* entryblock = &p->topfunc()->front();
1820 resval = DtoAlloca(LLType::Int1Ty,"orortmp"); 1818 resval = DtoAlloca(LLType::Int1Ty,"orortmp");
1821 1819
1822 DValue* u = e1->toElem(p); 1820 DValue* u = e1->toElem(p);
1823 1821
1824 llvm::BasicBlock* oldend = p->scopeend(); 1822 llvm::BasicBlock* oldend = p->scopeend();
2075 2073
2076 Type* dtype = type->toBasetype(); 2074 Type* dtype = type->toBasetype();
2077 const LLType* resty = DtoType(dtype); 2075 const LLType* resty = DtoType(dtype);
2078 2076
2079 // allocate a temporary for the final result. failed to come up with a better way :/ 2077 // allocate a temporary for the final result. failed to come up with a better way :/
2080 llvm::BasicBlock* entryblock = &p->topfunc()->front();
2081 LLValue* resval = DtoAlloca(resty,"condtmp"); 2078 LLValue* resval = DtoAlloca(resty,"condtmp");
2082 DVarValue* dvv = new DVarValue(type, resval); 2079 DVarValue* dvv = new DVarValue(type, resval);
2083 2080
2084 llvm::BasicBlock* oldend = p->scopeend(); 2081 llvm::BasicBlock* oldend = p->scopeend();
2085 llvm::BasicBlock* condtrue = llvm::BasicBlock::Create("condtrue", gIR->topfunc(), oldend); 2082 llvm::BasicBlock* condtrue = llvm::BasicBlock::Create("condtrue", gIR->topfunc(), oldend);