[PATCH] D20038: Make CodeView TypeIterator generic so that it can iterate symbols too

Zachary Turner via llvm-commits llvm-commits at lists.llvm.org
Fri May 6 15:46:37 PDT 2016


zturner created this revision.
zturner added reviewers: rnk, amccarth.
zturner added a subscriber: llvm-commits.

Symbol streams and type streams have the same format, and it's possible we might find other types of "things" that have similar formats as well.  So rather than reproduce the code, we templatize TypeIterator on the type enumeration kind, and allow it to iterate over arbitrary streams of similarly laid out records.

http://reviews.llvm.org/D20038

Files:
  include/llvm/DebugInfo/CodeView/CVTypeVisitor.h
  include/llvm/DebugInfo/CodeView/RecordIterator.h
  include/llvm/DebugInfo/CodeView/SymbolRecord.h
  include/llvm/DebugInfo/CodeView/TypeDumper.h
  include/llvm/DebugInfo/CodeView/TypeRecord.h
  include/llvm/DebugInfo/CodeView/TypeStream.h
  lib/DebugInfo/CodeView/TypeDumper.cpp
  tools/llvm-pdbdump/llvm-pdbdump.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D20038.56477.patch
Type: text/x-patch
Size: 12391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160506/5b5ed192/attachment.bin>


More information about the llvm-commits mailing list