... | ... |
@@ -3098,6 +3098,8 @@ extern unsigned cli_numapicalls; |
3098 | 3098 |
static void cli_bytetype_helper(const struct cli_bc *bc, unsigned tid) |
3099 | 3099 |
{ |
3100 | 3100 |
unsigned i, j; |
3101 |
+ const struct cli_bc_type *ty = &bc->types[i]; |
|
3102 |
+ |
|
3101 | 3103 |
|
3102 | 3104 |
if (tid & 0x8000) { |
3103 | 3105 |
printf("alloc "); |
... | ... |
@@ -3110,7 +3112,6 @@ static void cli_bytetype_helper(const struct cli_bc *bc, unsigned tid) |
3110 | 3110 |
} |
3111 | 3111 |
|
3112 | 3112 |
i = tid - 65; |
3113 |
- const struct cli_bc_type *ty = &bc->types[i]; |
|
3114 | 3113 |
|
3115 | 3114 |
switch (ty->kind) { |
3116 | 3115 |
case DFunctionType: |
... | ... |
@@ -3218,6 +3219,7 @@ void cli_byteinst_describe(const struct cli_bc_inst *inst, unsigned *bbnum) |
3218 | 3218 |
{ |
3219 | 3219 |
unsigned j; |
3220 | 3220 |
char inst_str[256]; |
3221 |
+ const struct cli_apicall *api; |
|
3221 | 3222 |
|
3222 | 3223 |
if (inst->opcode > OP_BC_INVALID) { |
3223 | 3224 |
printf("opcode %u[%u] of type %u is not implemented yet!", |
... | ... |
@@ -3355,7 +3357,7 @@ void cli_byteinst_describe(const struct cli_bc_inst *inst, unsigned *bbnum) |
3355 | 3355 |
printf("apicall FID %d not yet implemented!\n", inst->u.ops.funcid); |
3356 | 3356 |
break; |
3357 | 3357 |
} |
3358 |
- const struct cli_apicall *api = &cli_apicalls[inst->u.ops.funcid]; |
|
3358 |
+ api = &cli_apicalls[inst->u.ops.funcid]; |
|
3359 | 3359 |
switch (api->kind) { |
3360 | 3360 |
case 0: |
3361 | 3361 |
printf("%d = %s[%d] (%d, %d)", inst->dest, api->name, |
... | ... |
@@ -82,11 +82,7 @@ |
82 | 82 |
#include "llvm/InstVisitor.h" |
83 | 83 |
#endif |
84 | 84 |
|
85 |
-#if LLVM_VERSION < 28 |
|
86 |
-#define DEFINEPASS(passname) passname() : FunctionPass(&ID) |
|
87 |
-#else |
|
88 | 85 |
#define DEFINEPASS(passname) passname() : FunctionPass(ID) |
89 |
-#endif |
|
90 | 86 |
|
91 | 87 |
using namespace llvm; |
92 | 88 |
#if LLVM_VERSION < 29 |
... | ... |
@@ -162,7 +162,10 @@ EXPORTS cli_fmap_scandesc @44265 NONAME |
162 | 162 |
EXPORTS cli_hashset_destroy @44266 NONAME |
163 | 163 |
EXPORTS cli_detect_environment @44267 NONAME |
164 | 164 |
EXPORTS cli_filecopy @44268 NONAME |
165 |
-EXPORTS cli_checkfp_pe @44353 NONAME |
|
165 |
+EXPORTS cli_checkfp_pe @44369 NONAME |
|
166 |
+EXPORTS cli_bytefunc_describe @44370 NONAME |
|
167 |
+EXPORTS cli_bytetype_describe @44371 NONAME |
|
168 |
+EXPORTS cli_bytevalue_describe @44372 NONAME |
|
166 | 169 |
|
167 | 170 |
; compatibility layer, tommath, zlib |
168 | 171 |
EXPORTS w32_srand @44269 NONAME |