Mercurial > projects > ldc
comparison gen/llvmhelpers.h @ 439:47b64d06eb9f
Enable array bounds check and emit them in IndexExp.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Wed, 30 Jul 2008 18:38:56 +0200 |
parents | 74101be2a553 |
children | d8dc221d3db7 |
comparison
equal
deleted
inserted
replaced
438:3c133dd1eda3 | 439:47b64d06eb9f |
---|---|
11 void DtoDeleteInterface(LLValue* inst); | 11 void DtoDeleteInterface(LLValue* inst); |
12 void DtoDeleteArray(DValue* arr); | 12 void DtoDeleteArray(DValue* arr); |
13 | 13 |
14 // assertion generator | 14 // assertion generator |
15 void DtoAssert(Loc* loc, DValue* msg); | 15 void DtoAssert(Loc* loc, DValue* msg); |
16 // array boundary check generator | |
17 void DtoArrayBoundsCheck(Loc& loc, DValue* arr, DValue* index); | |
16 | 18 |
17 // return the LabelStatement from the current function with the given identifier or NULL if not found | 19 // return the LabelStatement from the current function with the given identifier or NULL if not found |
18 LabelStatement* DtoLabelStatement(Identifier* ident); | 20 LabelStatement* DtoLabelStatement(Identifier* ident); |
19 // emit goto | 21 // emit goto |
20 void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosingtryfinally, TryFinallyStatement* sourcetf); | 22 void DtoGoto(Loc* loc, Identifier* target, EnclosingHandler* enclosingtryfinally, TryFinallyStatement* sourcetf); |