commit | 8c74f7f2991a10977fd5a003b2901b56eb2e19a8 | [log] [tgz] |
---|---|---|
author | Benjamin Kramer <benny.kra@googlemail.com> | Tue Sep 13 19:42:16 2011 +0000 |
committer | Benjamin Kramer <benny.kra@googlemail.com> | Tue Sep 13 19:42:16 2011 +0000 |
tree | e9c25ae260bcc06a6bbd5cd8c2fddd316352a1cc | |
parent | df24e1fb0812edd2bd33a3b279edb030dd30023d [diff] |
Add the DataExtractor utility class. It is an endian-aware helper that can read data from a StringRef. It will come in handy for DWARF parsing. This class is inspired by LLDB's DataExtractor, but is stripped down to the bare minimum needed for DWARF. Comes with unit tests! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@139626 91177308-0d34-0410-b5e6-96231b3b80d8