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

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -