Displaying 4 results from an estimated 4 matches for "coff_section".
2012 Jun 12
4
[LLVMdev] Questions about llvm/Object/COFF.h
...ns(); ++iter )
and it doesn't compile. There's no ++ for section iterators.
Apparently, you're supposed to write.
for (llvm::object::section_iterator iter = Obj.begin_sections (); iter != Obj.end_sections(); iter.increment(ec))
Srsly?
[ And - how do I go from a section_iterator to a coff_section ? ]
While I'm puzzling over that, I look some more, and I see:
error_code getSection(int32_t index, const coff_section *&Res) const;
Cool. (A bit weird; why a signed index?, but whatever)
So I write:
const llvm::object::coff_section *sect;
for (std::size_t i = 0; i < NumSections; +...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...#39;t compile. There's no ++ for section iterators.
> Apparently, you're supposed to write.
> for (llvm::object::section_iterator iter = Obj.begin_sections ();
> iter != Obj.end_sections(); iter.increment(ec))
> Srsly?
> [ And - how do I go from a section_iterator to a coff_section ? ]
>
> While I'm puzzling over that, I look some more, and I see:
> error_code getSection(int32_t index, const coff_section *&Res)
> const;
>
> Cool. (A bit weird; why a signed index?, but whatever)
> So I write:
> const llvm::object::coff_section *sec...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...oesn't compile. There's no ++ for section iterators.
> Apparently, you're supposed to write.
> for (llvm::object::section_iterator iter = Obj.begin_sections (); iter != Obj.end_sections(); iter.increment(ec))
> Srsly?
> [ And - how do I go from a section_iterator to a coff_section ? ]
That part of the interface is private to COFFObject. COFFObject itself
isn't really designed to be used with the generic interface, although
I'm very open to a better design that allows this in a sane way.
> While I'm puzzling over that, I look some more, and I see:
> ...
2012 Jun 13
1
[LLVMdev] Questions about llvm/Object/COFF.h
...'s no ++ for section iterators.
> > Apparently, you're supposed to write.
> > for (llvm::object::section_iterator iter = Obj.begin_sections ();
> iter != Obj.end_sections(); iter.increment(ec))
> > Srsly?
> > [ And - how do I go from a section_iterator to a coff_section ? ]
>
> That part of the interface is private to COFFObject. COFFObject itself
> isn't really designed to be used with the generic interface, although
> I'm very open to a better design that allows this in a sane way.
>
> > While I'm puzzling over that, I look some...