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 mapping the global variables in Stringmap?
I need to identify the global variable with its name in the IR to be able to load and store its values.
Thanks