| Index: courgette/encoded_program.h
|
| diff --git a/courgette/encoded_program.h b/courgette/encoded_program.h
|
| index 1169331b1d8d6a94ce47b7c488f60004a893059b..390514606191399bc1a364911560029461abb98b 100644
|
| --- a/courgette/encoded_program.h
|
| +++ b/courgette/encoded_program.h
|
| @@ -14,6 +14,7 @@
|
| #include "base/macros.h"
|
| #include "courgette/courgette.h"
|
| #include "courgette/image_utils.h"
|
| +#include "courgette/instruction_utils.h"
|
| #include "courgette/memory_allocator.h"
|
| #include "courgette/types_elf.h"
|
|
|
| @@ -80,6 +81,10 @@ class EncodedProgram {
|
| // (5) Assembles the 'binary assembly language' into final file.
|
| CheckBool AssembleTo(SinkStream* buffer) WARN_UNUSED_RESULT;
|
|
|
| + // Calls |gen| to extract all instructions, which are then encoded and stored.
|
| + CheckBool GenerateInstructions(ExecutableType exe_type,
|
| + const InstructionGenerator& gen);
|
| +
|
| private:
|
| // Binary assembly language operations.
|
| // These are part of the patch format. Reusing an existing value will
|
|
|