diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-01-20 12:25:38 +0000 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-01-20 12:25:38 +0000 |
commit | 0b23bc6179b7a8e6c8664374d7d6f66fe9c9bdcb (patch) | |
tree | 1114a5da66f23765fddfbba3ecdbd3f2ee0356eb /compiler_and_linker/unsorted/PCodeAssembly.c | |
parent | 0905072b3ccfcb394b1dca2405a55cff4e2b9271 (diff) | |
download | MWCC-0b23bc6179b7a8e6c8664374d7d6f66fe9c9bdcb.tar.gz MWCC-0b23bc6179b7a8e6c8664374d7d6f66fe9c9bdcb.zip |
add PPCError error code enum
Diffstat (limited to 'compiler_and_linker/unsorted/PCodeAssembly.c')
-rw-r--r-- | compiler_and_linker/unsorted/PCodeAssembly.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler_and_linker/unsorted/PCodeAssembly.c b/compiler_and_linker/unsorted/PCodeAssembly.c index 58a3d51..368f8c5 100644 --- a/compiler_and_linker/unsorted/PCodeAssembly.c +++ b/compiler_and_linker/unsorted/PCodeAssembly.c @@ -79,9 +79,9 @@ static SInt32 pcode_update_mem_labeldiff_imm(PCode *instr, const PCodeArg *op, W offset = -offset; if (offset > 0x7FFF) - PPCError_Error(109); + PPCError_Error(PPCErrorStr109); else if (offset < -0x8000) - PPCError_Error(109); + PPCError_Error(PPCErrorStr109); } else if (op->kind == PCOp_IMMEDIATE) { offset = op->data.imm.value; } else { @@ -1546,7 +1546,7 @@ SInt32 assemblefunction(Object *func, EntryPoint *entrypoints) { codesize = pccomputeoffsets(); if (codesize <= 0) - PPCError_Error(190, func->name->name); + PPCError_Error(PPCErrorStr190, func->name->name); if (copts.peephole || copts.optimizationlevel >= 3) codesize = optimizefinalbranches(codesize); |