search for: content_iterator

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

2012 Jun 12
4
[LLVMdev] Questions about llvm/Object/COFF.h
...; i < NumSections; ++i) Obj.getSection(i, sect); And my program dies with a segmentation fault. Turns out that sect == NULL. More looking, I see that the sections are numbered 1 … N, not 0 ... N-1 Now I'm really really confused. Why? BTW - patch attached to add pre-increment to llvm::content_iterator (which is the template base for section_iterator, etc) -- Marshall -------------- next part -------------- A non-text attachment was scrubbed... Name: section-iter.patch Type: application/octet-stream Size: 453 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachmen...
2012 Jun 13
1
[LLVMdev] Questions about llvm/Object/COFF.h
...I see that the sections are numbered 1 … N, not 0 ... N-1 > > > > Now I'm really really confused. Why? > > This is because that is how they are numbered in COFF. -2, -1, and 0 > are special section indices. > > > BTW - patch attached to add pre-increment to llvm::content_iterator > (which is the template base for section_iterator, etc) > > > > -- Marshall > > > Index: include/llvm/Object/ObjectFile.h > =================================================================== > --- include/llvm/Object/ObjectFile.h (revision 158307) > +++ include...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...sect == NULL. > More looking, I see that the sections are numbered 1 … N, not 0 ... N-1 > > Now I'm really really confused.  Why? This is because that is how they are numbered in COFF. -2, -1, and 0 are special section indices. > BTW - patch attached to add pre-increment to llvm::content_iterator (which is the template base for section_iterator, etc) > > -- Marshall Index: include/llvm/Object/ObjectFile.h =================================================================== --- include/llvm/Object/ObjectFile.h (revision 158307) +++ include/llvm/Object/ObjectFile.h (working copy) + co...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...tSection(i, sect); > > And my program dies with a segmentation fault. > Turns out that sect == NULL. > More looking, I see that the sections are numbered 1 … N, not 0 ... N-1 > > Now I'm really really confused. Why? > > BTW - patch attached to add pre-increment to llvm::content_iterator (which > is the template base for section_iterator, etc) > > -- Marshall > > > > > > -- Marshall > > Marshall Clow Idio Software <mailto:mclow.lists at gmail.com> > > A.D. 1517: Martin Luther nails his 95 Theses to the church door and is > promp...