using namespace llvm;
namespace {
struct Kratos :public FunctionPass{
static char
ID
;
Kratos():FunctionPass(
ID
){}
bool
runOnFunction(Function &F) override{
errs()<<
"Hello:"
;
errs().write_escaped(F.getName())<<
"\n"
;
return
false;
}
};
}
char Kratos::
ID
=
0
;
static RegisterPass<Kratos> X(
"Kratos"
,
"Hello world pass"
,false,false);