search for: nvariablename

Displaying 1 result from an estimated 1 matches for "nvariablename".

Did you mean: variablename
2016 May 29
1
How to find variable names from LLVM IR?
...= dyn_cast<DbgValueInst>(&*Iter)) { if (DbgValue->getValue() == V) Var = DbgValue->getVariable(); } } name = Var->getName(); } errs() << "\nVariableName: " << name.str() << "\n"; But this condition: if(DbgDeclare->getAddress() == V) produces false result as the address for the Value object differs from every Value object found in dbg.declare intrinsic. Is this not how one finds the variable name?? What am I doing wro...