Displaying 1 result from an estimated 1 matches for "971acf4".
Did you mean:
9710cf4
2010 Sep 14
1
[LLVMdev] Wierd behavior from getAnalysis<>
...Pass(bp, ipInfo,
exeInfo);
std::cerr << "dummytargspass :" << p;
llvm::Pass* parent = p;
std::cerr << "value of parent:" << parent;
PM.add(p);
I get from the cerr statement
dummytargspass :0x971acd8
value of parent:0x971acf4
In the InsertDummyTargsPass::runOnModule I have the following statement
printf("value of this %x\n", (unsigned int) this);
which gives:
value of this 971acd8
then I use in a different pass
InsertDummyTargsPass& dt = getAnalysis<InsertDummyTargsPass>();
printf("...