#include "llvm/CodeGen/MachineFunction.h"
#include "llvm/CodeGen/MachineFunctionPass.h"
#include "llvm/CodeGen/MachineInstrBuilder.h"
#include "llvm/CodeGen/TargetInstrInfo.h"
#include "llvm/CodeGen/TargetSubtargetInfo.h"
#include "llvm/InitializePasses.h"
#include "llvm/Pass.h"
#include "llvm/PassRegistry.h"
usingnamespacellvm;
namespace {
struct PatchableFunction : public MachineFunctionPass { … };
}
bool PatchableFunction::runOnMachineFunction(MachineFunction &MF) { … }
char PatchableFunction::ID = …;
char &llvm::PatchableFunctionID = …;
INITIALIZE_PASS(…)