22 lines
379 B
C++
22 lines
379 B
C++
#pragma once
|
|
|
|
#include <stage0.h>
|
|
#include <safe-gimple.h>
|
|
|
|
struct S1InstructionPin {
|
|
enum ARCH {
|
|
NONE, X86_64
|
|
} arch;
|
|
|
|
UID target;
|
|
std::size_t offset;
|
|
|
|
static const std::unordered_map<UID, S1InstructionPin>& all();
|
|
static void reset();
|
|
};
|
|
|
|
struct asm_offset_pass : gimple_opt_pass {
|
|
asm_offset_pass(gcc::context* ctxt);
|
|
unsigned int execute(function* fn) override;
|
|
};
|