diff options
Diffstat (limited to 'courgette/courgette.h')
-rw-r--r-- | courgette/courgette.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/courgette/courgette.h b/courgette/courgette.h index 4831228..542c43f 100644 --- a/courgette/courgette.h +++ b/courgette/courgette.h @@ -48,6 +48,7 @@ enum Status { C_DISASSEMBLY_FAILED = 25, // C_ASSEMBLY_FAILED = 26, // C_ADJUSTMENT_FAILED = 27, // + C_TRIM_FAILED = 28, // TrimLabels failed }; // What type of executable is something @@ -107,6 +108,10 @@ Status DetectExecutableType(const void* buffer, size_t length, Status ParseDetectedExecutable(const void* buffer, size_t length, AssemblyProgram** output); +// Trims labels used fewer than a given number of times from an +// assembly program in-place. +Status TrimLabels(AssemblyProgram* program); + // Converts |program| into encoded form, returning it as |*output|. // Returns C_OK if succeeded, otherwise returns an error status and // sets |*output| to NULL |