... | ... |
@@ -456,7 +456,7 @@ static void add_static_types(struct cli_bc *bc) |
456 | 456 |
{ |
457 | 457 |
unsigned i; |
458 | 458 |
for (i=0;i<NUM_STATIC_TYPES;i++) { |
459 |
- bc->types[i].kind = PointerType; |
|
459 |
+ bc->types[i].kind = DPointerType; |
|
460 | 460 |
bc->types[i].numElements = 1; |
461 | 461 |
bc->types[i].containedTypes = &containedTy[i]; |
462 | 462 |
bc->types[i].size = bc->types[i].align = sizeof(void*); |
... | ... |
@@ -488,7 +488,7 @@ static int parseTypes(struct cli_bc *bc, unsigned char *buffer) |
488 | 488 |
} |
489 | 489 |
switch (t) { |
490 | 490 |
case 1: |
491 |
- ty->kind = FunctionType; |
|
491 |
+ ty->kind = DFunctionType; |
|
492 | 492 |
ty->size = ty->align = sizeof(void*); |
493 | 493 |
parseType(bc, ty, buffer, &offset, len, &ok); |
494 | 494 |
if (!ok) { |
... | ... |
@@ -498,7 +498,7 @@ static int parseTypes(struct cli_bc *bc, unsigned char *buffer) |
498 | 498 |
break; |
499 | 499 |
case 2: |
500 | 500 |
case 3: |
501 |
- ty->kind = (t == 2) ? StructType : PackedStructType; |
|
501 |
+ ty->kind = (t == 2) ? DStructType : DPackedStructType; |
|
502 | 502 |
ty->size = ty->align = 0;/* TODO:calculate size/align of structs */ |
503 | 503 |
parseType(bc, ty, buffer, &offset, len, &ok); |
504 | 504 |
if (!ok) { |
... | ... |
@@ -507,7 +507,7 @@ static int parseTypes(struct cli_bc *bc, unsigned char *buffer) |
507 | 507 |
} |
508 | 508 |
break; |
509 | 509 |
case 4: |
510 |
- ty->kind = ArrayType; |
|
510 |
+ ty->kind = DArrayType; |
|
511 | 511 |
/* number of elements of array, not subtypes! */ |
512 | 512 |
ty->numElements = readNumber(buffer, &offset, len, &ok); |
513 | 513 |
if (!ok) { |
... | ... |
@@ -517,7 +517,7 @@ static int parseTypes(struct cli_bc *bc, unsigned char *buffer) |
517 | 517 |
/* fall-through */ |
518 | 518 |
case 5: |
519 | 519 |
if (t == 5) { |
520 |
- ty->kind = PointerType; |
|
520 |
+ ty->kind = DPointerType; |
|
521 | 521 |
ty->numElements = 1; |
522 | 522 |
} |
523 | 523 |
ty->containedTypes = cli_malloc(sizeof(*ty->containedTypes)); |
... | ... |
@@ -214,7 +214,7 @@ public: |
214 | 214 |
PrettyStackTraceString Trace(BytecodeID.str().c_str()); |
215 | 215 |
convertTypes(); |
216 | 216 |
|
217 |
- llvm::FunctionType *FTy = FunctionType::get(Type::getVoidTy(Context), |
|
217 |
+ FunctionType *FTy = FunctionType::get(Type::getVoidTy(Context), |
|
218 | 218 |
false); |
219 | 219 |
Function *FHandler = Function::Create(FTy, Function::InternalLinkage, |
220 | 220 |
"clamjit.fail", M); |
... | ... |
@@ -233,7 +233,7 @@ public: |
233 | 233 |
argTypes.push_back(mapType(func->types[a])); |
234 | 234 |
} |
235 | 235 |
const Type *RetTy = mapType(func->returnType); |
236 |
- llvm::FunctionType *FTy = FunctionType::get(RetTy, argTypes, |
|
236 |
+ FunctionType *FTy = FunctionType::get(RetTy, argTypes, |
|
237 | 237 |
false); |
238 | 238 |
Functions[j] = Function::Create(FTy, Function::InternalLinkage, |
239 | 239 |
BytecodeID+"f"+Twine(j), M); |
... | ... |
@@ -461,7 +461,7 @@ public: |
461 | 461 |
|
462 | 462 |
DEBUG(M->dump()); |
463 | 463 |
delete [] TypeMap; |
464 |
- llvm::FunctionType *Callable = FunctionType::get(Type::getInt32Ty(Context),false); |
|
464 |
+ FunctionType *Callable = FunctionType::get(Type::getInt32Ty(Context),false); |
|
465 | 465 |
for (unsigned j=0;j<bc->num_func;j++) { |
466 | 466 |
const struct cli_bc_func *func = &bc->funcs[j]; |
467 | 467 |
PrettyStackTraceString CrashInfo2("Native machine codegen"); |
... | ... |
@@ -29,10 +29,10 @@ static uint16_t cli_tmp2[]={70}; |
29 | 29 |
static uint16_t cli_tmp3[]={32, 32, 32}; |
30 | 30 |
|
31 | 31 |
const struct cli_bc_type cli_apicall_types[]={ |
32 |
- {FunctionType, cli_tmp0, 3}, |
|
33 |
- {PointerType, cli_tmp1, 1}, |
|
34 |
- {StructType, cli_tmp2, 1}, |
|
35 |
- {FunctionType, cli_tmp3, 3} |
|
32 |
+ {DFunctionType, cli_tmp0, 3}, |
|
33 |
+ {DPointerType, cli_tmp1, 1}, |
|
34 |
+ {DStructType, cli_tmp2, 1}, |
|
35 |
+ {DFunctionType, cli_tmp3, 3} |
|
36 | 36 |
}; |
37 | 37 |
|
38 | 38 |
const unsigned cli_apicall_maxtypes=sizeof(cli_apicall_types)/sizeof(cli_apicall_types[0]); |
... | ... |
@@ -23,11 +23,11 @@ |
23 | 23 |
#define TYPE_DESC_H |
24 | 24 |
|
25 | 25 |
enum derived_t { |
26 |
- FunctionType, |
|
27 |
- PointerType, |
|
28 |
- StructType, |
|
29 |
- PackedStructType, |
|
30 |
- ArrayType |
|
26 |
+ DFunctionType, |
|
27 |
+ DPointerType, |
|
28 |
+ DStructType, |
|
29 |
+ DPackedStructType, |
|
30 |
+ DArrayType |
|
31 | 31 |
}; |
32 | 32 |
|
33 | 33 |
struct cli_bc_type { |