More error handling - locations of refs to undefined symbols.

This commit is contained in:
Stephen Dolan committed 2012-09-11 12:24:54 +01:00
1 parent 4c7bede5a4
commit 062a6aa6d7
5 files changed
+90 -43

No files matched your search

+4 -1
View File
@@ -1,6 +1,7 @@
#include <stdint.h>
#include "bytecode.h"
#include "opcode.h"
#include "locfile.h"
struct inst;
typedef struct inst inst;
@@ -11,6 +12,8 @@ typedef struct block {
inst* last;
} block;
block gen_location(location, block);
block gen_noop();
block gen_op_simple(opcode op);
block gen_op_const(opcode op, jv constant);
@@ -39,7 +42,7 @@ void block_append(block* b, block b2);
block block_join(block a, block b);
block block_bind(block binder, block body, int bindflags);
struct bytecode* block_compile(block);
int block_compile(block, struct locfile*, struct bytecode**);
void block_free(block);