mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-07 19:36:06 +03:00
Rename DtoAggrPaint
to DtoSlicePaint
(#4174)
It only does two elements and is exclusively used for slices
This commit is contained in:
parent
78e68b5149
commit
af51b700be
5 changed files with 10 additions and 10 deletions
|
@ -2475,7 +2475,7 @@ public:
|
|||
LLGlobalValue::InternalLinkage, initval, ".aaKeysStorage");
|
||||
LLConstant *slice = DtoGEP(initval->getType(), globalstore, 0u, 0u);
|
||||
slice = DtoConstSlice(DtoConstSize_t(e->keys->length), slice);
|
||||
LLValue *keysArray = DtoAggrPaint(slice, funcTy->getParamType(1));
|
||||
LLValue *keysArray = DtoSlicePaint(slice, funcTy->getParamType(1));
|
||||
|
||||
initval = arrayConst(valuesInits, vtype);
|
||||
globalstore = new LLGlobalVariable(gIR->module, initval->getType(), false,
|
||||
|
@ -2483,7 +2483,7 @@ public:
|
|||
initval, ".aaValuesStorage");
|
||||
slice = DtoGEP(initval->getType(), globalstore, 0u, 0u);
|
||||
slice = DtoConstSlice(DtoConstSize_t(e->keys->length), slice);
|
||||
LLValue *valuesArray = DtoAggrPaint(slice, funcTy->getParamType(2));
|
||||
LLValue *valuesArray = DtoSlicePaint(slice, funcTy->getParamType(2));
|
||||
|
||||
LLValue *aa = gIR->CreateCallOrInvoke(func, aaTypeInfo, keysArray,
|
||||
valuesArray, "aa");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue