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
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) ?
Just as a warning, I'm pulling all of this from memory, so I might get something wrong.
If GV points to a global variable (and const_global_iterator probably magically casts to a GlobalVariable *), then yes, that is how you change the initializer.
afaik, newOne is a constant - right?
I believe so, yes.
Is the original Initializer automatically purged or do I need to delete it?
You should need to delete it.
Regards,
John Criswell