LLVM: how to pass a name to ConstantInt -
using llvm's c++ api, i'm calling constantint->setname("name") on constantint->getname() doesn't show up. empty string. constantint not supposed have name?
you cannot assign names constants (and neither can assign names void values). unfortunately indeed poorly-documented, can see in the source code of value::setname
. makes sense when consider how constants in textual representation of ir.
what can instead create global variable , mark constant - can named.
Comments
Post a Comment