[LLVMdev] Mutating the elements of a ConstantArray

Nick Johnson npjohnso at cs.princeton.edu
Tue Mar 31 16:42:44 PDT 2009


Hello,

I need to append something to the global "llvm.global_ctors".  This
variable may or may not already be declared within the current module.

If I lookup the global variable, I see that it supports a
getOperand(i) and setOperand(i,c), but does not support any way that I
can enlarge that array to add a new record.

Any suggestions?

-- 
Nick Johnson



More information about the llvm-dev mailing list