Resetting the builder arena. May be a bug or two here still.

This commit is contained in:
Ben Vanik
2013-12-29 23:43:36 -08:00
parent 63f11732a5
commit cd9172ed62
5 changed files with 32 additions and 1 deletions

View File

@@ -13,6 +13,7 @@
#include <alloy/core.h>
#include <alloy/hir/block.h>
#include <alloy/hir/instr.h>
#include <alloy/hir/label.h>
#include <alloy/hir/opcodes.h>
#include <alloy/hir/value.h>
@@ -47,6 +48,7 @@ public:
Label* NewLabel();
void MarkLabel(Label* label, Block* block = 0);
void InsertLabel(Label* label, Instr* prev_instr);
void ResetLabelTags();
// static allocations:
// Value* AllocStatic(size_t length);