Mercurial > projects > ldc
comparison gen/complex.cpp @ 1535:61f12f4651b5
Don't use llvm::getGlobalContext() anymore
author | Benjamin Kramer <benny.kra@gmail.com> |
---|---|
date | Mon, 13 Jul 2009 20:16:15 +0200 |
parents | 8ca25bd765a3 |
children | 1d5c3354b3c2 |
comparison
equal
deleted
inserted
replaced
1534:8ca25bd765a3 | 1535:61f12f4651b5 |
---|---|
109 | 109 |
110 LLValue *re, *im; | 110 LLValue *re, *im; |
111 DtoGetComplexParts(loc, to, val, re, im); | 111 DtoGetComplexParts(loc, to, val, re, im); |
112 | 112 |
113 if(!re) | 113 if(!re) |
114 re = llvm::getGlobalContext().getNullValue(DtoType(baserety)); | 114 re = gIR->context().getNullValue(DtoType(baserety)); |
115 if(!im) | 115 if(!im) |
116 im = llvm::getGlobalContext().getNullValue(DtoType(baseimty)); | 116 im = gIR->context().getNullValue(DtoType(baseimty)); |
117 | 117 |
118 LLValue* res = DtoAggrPair(complexTy, re, im); | 118 LLValue* res = DtoAggrPair(complexTy, re, im); |
119 | 119 |
120 return new DImValue(to, res); | 120 return new DImValue(to, res); |
121 } | 121 } |