Displaying 1 result from an estimated 1 matches for "0x971acd8".
Did you mean:
0x9071cd8
2010 Sep 14
1
[LLVMdev] Wierd behavior from getAnalysis<>
...gsPass* p = new InsertDummyTargsPass(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<InsertDummyTar...