search for: postappendinglinkag

Displaying 3 results from an estimated 3 matches for "postappendinglinkag".

Did you mean: postappendinglinkage
2008 Apr 24
1
[LLVMdev] Question about appending linkage
...to try and solve the general case instead of just my own particular need. Unfortunately I can't think of any reasonable way to do it that doesn't involve polluting the IR language with a lot of special cases. Here are some ideas that I thought of and discarded: * Have a special "PostAppendingLinkage" type which acts just like "AppendingLinkage", except that it is guaranteed to come after all "AppendingLinkage" sections have been appended. Thus, you could use this to nail a sentinel value at the end of the list. Rejected because the linker has no control over the o...
2008 Apr 02
0
[LLVMdev] Question about appending linkage
Talin wrote: > I'm trying to figure out how to do static initialization (like static > constructors in C++ or Java). I figured I would use appending linkage - > that is, for each module I'd generate a function that did all of the > static initialization for that module, and then I'd put a pointer to > that function in an array with appending linkage. Then my >
2008 Apr 02
3
[LLVMdev] Question about appending linkage
I'm trying to figure out how to do static initialization (like static constructors in C++ or Java). I figured I would use appending linkage - that is, for each module I'd generate a function that did all of the static initialization for that module, and then I'd put a pointer to that function in an array with appending linkage. Then my compiler-generated startup code would simply