[LLVMdev] Replacing an initializer (original) (raw)

Alexander Poddey alexander.poddey at gmx.net
Fri Feb 27 10:24:29 PST 2015


Hi all,

suppose I would like to change the initial value of a global. Is the supposed way to change the initializer via const_global_iterator I I->setInitializer(newOne) ?

afaik, newOne is a constant - right? Is the original Initializer automatically purged or do I need to delete it?

thanks Alex



More information about the llvm-dev mailing list