search for: translationunitsource

Displaying 4 results from an estimated 4 matches for "translationunitsource".

2012 Oct 16
2
[LLVMdev] LLD AbsoluteAtoms
...is case for it may be an ELF'ism, when > > st_info == STB_LOCAL | STT_FILE > > st_shndx == SHN_ABS > > > > Then st_value will probably be zero and this symbol's name should match > > the name of the originating source file. > The lld::File class has a method translationUnitSource() that (if > available) returns the path to the source file that created this object > file. If this matches the semantics of STB_LOCAL | STT_FILE, then the > reader could use that SHN_ABS symbol to populate an ivar that > translationUnitSource() returns. That is, that symbol conver...
2012 Oct 16
0
[LLVMdev] LLD AbsoluteAtoms
...ymbol by figuring out the translation unit. Then we are in agreement. Sid started this thread with the suggestion of adding new content types to AbsoluteAtoms so as to encode STT_FILE symbols. I said we don't need to new content type, but rather that STT_FILE should map to the lld::File's translationUnitSource instead of to an Atom. -Nick > > Shankar Easwaran > > On Mon, Oct 15, 2012 at 6:07 PM, Nick Kledzik <kledzik at apple.com> wrote: > > On Oct 15, 2012, at 4:00 PM, Sid Manning wrote: > > > On 10/15/12 12:01, Nick Kledzik wrote: > >> > >> On Oc...
2012 Oct 15
0
[LLVMdev] LLD AbsoluteAtoms
...E gives: >> > In this case for it may be an ELF'ism, when > st_info == STB_LOCAL | STT_FILE > st_shndx == SHN_ABS > > Then st_value will probably be zero and this symbol's name should match > the name of the originating source file. The lld::File class has a method translationUnitSource() that (if available) returns the path to the source file that created this object file. If this matches the semantics of STB_LOCAL | STT_FILE, then the reader could use that SHN_ABS symbol to populate an ivar that translationUnitSource() returns. That is, that symbol converts into a File attri...
2012 Oct 15
2
[LLVMdev] LLD AbsoluteAtoms
On 10/15/12 12:01, Nick Kledzik wrote: > > On Oct 15, 2012, at 8:08 AM, Sidney Manning wrote: >> >> I think that absolute atoms will need something similar to, "contentType" added. >> >> SHN_ABS symbols can have different types, STT_OBJECT, STT_FILE and maybe others. In order for the writer to tell it must have a way to reach back and ask the atom what type