Displaying 1 result from an estimated 1 matches for "a17ebd56685ee19e7761ae577cd511e25".
2013 Sep 10
1
[LLVMdev] Global Variable Recall
Hi All,
I need to call global variable by its name from the following code
for(Function::iterator i=F->begin();i!=F->end();++i)
{
BasicBlock*Bb =&*i;
GlobalVariable* GV = new GlobalVariable(type,false,
F->getLinkage(),0, "F$"+Bb->getName());
GV->setInitializer(Constant::getNullValue (typ));
GList.push_back(GV);
}
Could I solve that by