This is the mail archive of the
mailing list for the GCC project.
Re: [lto] PATCH: Add support for referencing types from function bodies
Kenneth Zadeck wrote:
you're about to read. DATA points to the memory-mapped data for the
function, as you wrote it out to the object file.
What do you mean by DATA? Is DATA a pointer to the function info that I
wrote or is data a pointer to the file that contains the function info
and I need to talk to the elf at the beginning of the file myself to
find the offset where my data starts.
"Memory-mapped data" was meant to imply the first of the two
alternatives, so I think your expectations match mine.
Obviously I am not supposed to know what is inside context, but I assume
that this is a different context than I am writing for each reference to
the global symbol table.
I'm not sure what you mean by this. You're not supposed to know what's
inside it, but you are supposed to pass it back to lto_resolve_type_ref,
when you encounter a reference to a type in the body of the function.
(650) 331-3385 x713