search for: begin_sections

Displaying 8 results from an estimated 8 matches for "begin_sections".

2012 Jun 12
4
[LLVMdev] Questions about llvm/Object/COFF.h
So, I'm trying to use this file to look inside COFF files. Got the header. OK. Now I want to look at the sections. Look, there's a section iterator. I can use that! So, I write: for (llvm::object::section_iterator iter = Obj.begin_sections (); iter != Obj.end_sections(); ++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 fr...
2013 Aug 02
5
[LLVMdev] Coding Standards: Iterator begin and end functions.
...tc...). But different parts of llvm have different opinions on how to handle the related case of classes that are not STL like, but have multiple collections that can be iterated over. * llvm/IR uses global_begin, alias_begin, etc. I.E., singular name + _begin(). * llvm/Object uses begin_symbols, begin_sections, etc. I.E, begin_ + plural name. * others (YAML, LoopIterator) use beginSequence, beginFlowSequence, etc. I would like to propose adding the the format used by llvm/IR to the coding standard since it seems to be the most common. Cheers, Rafael
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...mail.com>wrote: > So, I'm trying to use this file to look inside COFF files. > Got the header. OK. > > Now I want to look at the sections. > Look, there's a section iterator. I can use that! > > So, I write: > for (llvm::object::section_iterator iter = Obj.begin_sections (); > iter != Obj.end_sections(); ++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(e...
2012 Jun 12
0
[LLVMdev] Questions about llvm/Object/COFF.h
...mail.com> wrote: > So, I'm trying to use this file to look inside COFF files. > Got the header. OK. > > Now I want to look at the sections. > Look, there's a section iterator. I can use that! > > So, I write: >        for (llvm::object::section_iterator iter = Obj.begin_sections (); iter != Obj.end_sections(); ++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)) > S...
2013 Aug 02
0
[LLVMdev] Coding Standards: Iterator begin and end functions.
...of llvm have different opinions on how to handle > the related case of classes that are not STL like, but have multiple > collections that can be iterated over. > > * llvm/IR uses global_begin, alias_begin, etc. I.E., singular name + > _begin(). > * llvm/Object uses begin_symbols, begin_sections, etc. I.E, begin_ + > plural name. > * others (YAML, LoopIterator) use beginSequence, beginFlowSequence, etc. > > I would like to propose adding the the format used by llvm/IR to the > coding standard since it seems to be the most common. > Please do so. That is clearly the more...
2012 Jun 13
1
[LLVMdev] Questions about llvm/Object/COFF.h
...m trying to use this file to look inside COFF files. > > Got the header. OK. > > > > Now I want to look at the sections. > > Look, there's a section iterator. I can use that! > > > > So, I write: > > for (llvm::object::section_iterator iter = Obj.begin_sections (); > iter != Obj.end_sections(); ++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...
2013 Aug 02
0
[LLVMdev] Coding Standards: Iterator begin and end functions.
...rts of llvm have different opinions on how to handle > the related case of classes that are not STL like, but have multiple > collections that can be iterated over. > > * llvm/IR uses global_begin, alias_begin, etc. I.E., singular name + _begin(). > * llvm/Object uses begin_symbols, begin_sections, etc. I.E, begin_ + > plural name. > * others (YAML, LoopIterator) use beginSequence, beginFlowSequence, etc. > > I would like to propose adding the the format used by llvm/IR to the > coding standard since it seems to be the most common. +1 -Chris
2013 Feb 06
0
[LLVMdev] [llvm] r174463 - Initial support for DWARF CFI parsing and dumping in LLVM
...ory::DWARFContextInMemory(object::ObjectFile *Obj) : >> - IsLittleEndian(Obj->isLittleEndian()) { >> + IsLittleEndian(Obj->isLittleEndian()), >> + AddressSize(Obj->getBytesInAddress()) { >> error_code ec; >> for (object::section_iterator i = Obj->begin_sections(), >> e = Obj->end_sections(); >> @@ -459,6 +485,8 @@ DWARFContextInMemory::DWARFContextInMemo >> LineSection = data; >> else if (name == "debug_aranges") >> ARangeSection = data; >> + else if (name == "debug_...