#include "beemitter_binary.h"
#include "obst.h"
#include "pdeq.h"
+#include "error.h"
static code_fragment_t *first_fragment;
static code_fragment_t *last_fragment;
} while (changed);
}
+void be_emit_entity(ir_entity *entity, bool entity_sign, int offset,
+ bool is_relative)
+{
+ (void) entity;
+ (void) entity_sign;
+ (void) offset;
+ (void) is_relative;
+ panic("not implemented yet");
+}
+
void be_emit_code(FILE *output, const binary_emiter_interface_t *interface)
{
unsigned offset;
assert(fragment->offset >= offset);
nops = fragment->offset - offset;
if (nops > 0) {
- unsigned char *nopbuffer = obstack_alloc(&code_fragment_obst, nops);
- interface->create_nops(nopbuffer, nops);
- emit(output, nopbuffer, nops);
+ unsigned char *nopbuffer = obstack_alloc(&code_fragment_obst, nops);
+ interface->create_nops(nopbuffer, nops);
+ emit(output, nopbuffer, nops);
offset = fragment->offset;
obstack_free(&code_fragment_obst, nopbuffer);
}