Mercurial > projects > ldc
comparison gen/arrays.cpp @ 340:351c0077d0b3 trunk
[svn r361] Removed some dead code.
author | lindquist |
---|---|
date | Sun, 13 Jul 2008 02:04:25 +0200 |
parents | 385a18242485 |
children | b85cf5faccfc |
comparison
equal
deleted
inserted
replaced
339:385a18242485 | 340:351c0077d0b3 |
---|---|
103 DtoStore(srcptr, dstptr); | 103 DtoStore(srcptr, dstptr); |
104 } | 104 } |
105 } | 105 } |
106 | 106 |
107 ////////////////////////////////////////////////////////////////////////////////////////// | 107 ////////////////////////////////////////////////////////////////////////////////////////// |
108 | |
109 typedef const LLType* constLLVMTypeP; | |
110 | |
111 static size_t checkRectArrayInit(const LLType* pt, const LLType* t) | |
112 { | |
113 const LLArrayType* arrty = isaArray(pt); | |
114 if (pt != t && arrty) { | |
115 size_t n = checkRectArrayInit(arrty->getElementType(), t); | |
116 size_t ne = arrty->getNumElements(); | |
117 if (n) return n * ne; | |
118 return ne; | |
119 } | |
120 | |
121 return 0; | |
122 } | |
123 | 108 |
124 void DtoArrayInit(DValue* array, DValue* value) | 109 void DtoArrayInit(DValue* array, DValue* value) |
125 { | 110 { |
126 Logger::println("DtoArrayInit"); | 111 Logger::println("DtoArrayInit"); |
127 LOG_SCOPE; | 112 LOG_SCOPE; |