Displaying 1 result from an estimated 1 matches for "_modulelist".
Did you mean:
modulelist
2009 Oct 06
0
[LLVMdev] More questions about appending linkage
...ne, yay!)
to handle the problem of measuring the length of an appending linkage array.
The approach I was taking was pretty simple: Iterate through all of the
module's global variables until I find one that is trying to calculate the
end of an appending-linkage array, which looks like this:
@_moduleListEnd = constant [1 x %Module*]* getelementptr ([1 x %Module*]*
bitcast ([62 x %Module*]* @_moduleList to [1 x %Module*]*), i32 1) ; <[1 x
%Module*]**> [#uses=0]
Once I detected this particular pattern, I'd simply remove the bitcast
instruction so that the GEP is operating on the real type...