Displaying 3 results from an estimated 3 matches for "myfunctionpasspass".
2011 Jun 15
3
[LLVMdev] Cannot use function pass in a module pass
...ass(ID) {};
virtual bool runOnFunction(Function &F) {
errs() << "MyFunctionPass::runOnFunction(" << F.getName() << ")" << '\n';
return false;
}
};
}
char MyFunctionPass::ID = 0;
static RegisterPass<MyFunctionPass> MyFunctionPassPass("myfunctionpass",
"My function pass");
namespace {
struct MyModulePass : public ModulePass {
static char ID;
MyModulePass() : ModulePass(ID) {};
virtual bool runOnModule(Module &M) {
errs() << "MyModulePass::runOnModule" << '...
2011 Jun 16
0
[LLVMdev] Cannot use function pass in a module pass
...(Function&F) {
> errs()<< "MyFunctionPass::runOnFunction("<< F.getName()<< ")"<< '\n';
> return false;
> }
> };
> }
>
> char MyFunctionPass::ID = 0;
> static RegisterPass<MyFunctionPass> MyFunctionPassPass("myfunctionpass",
> "My function pass");
>
> namespace {
> struct MyModulePass : public ModulePass {
> static char ID;
> MyModulePass() : ModulePass(ID) {};
>
> virtual bool runOnModule(Module&M) {
> errs()<< &quo...
2011 Jun 16
1
[LLVMdev] Cannot use function pass in a module pass
... errs()<< "MyFunctionPass::runOnFunction("<< F.getName()<< ")"<< '\n';
>> return false;
>> }
>> };
>> }
>>
>> char MyFunctionPass::ID = 0;
>> static RegisterPass<MyFunctionPass> MyFunctionPassPass("myfunctionpass",
>> "My function pass");
>>
>> namespace {
>> struct MyModulePass : public ModulePass {
>> static char ID;
>> MyModulePass() : ModulePass(ID) {};
>>
>> virtual bool runOnModule(Module&M) {...