[PATCH] D74991: Add methods to data extractor for extracting bytes and fixed length C strings.

Greg Clayton via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 21 15:25:19 PST 2020


clayborg created this revision.
clayborg added reviewers: labath, dblaikie, aprantl.
Herald added a subscriber: hiraditya.
Herald added a project: LLVM.

These modificaitons will be used in D74883 <https://reviews.llvm.org/D74883>.

Fixed length C strings can have trailing NULLs or sometimes spaces (BSD archive files), so the fixed length C string defaults to stripping trailing NULLs, but can have the arguments specify to remove one or more kinds of spaces if needed. This is used to extract fixed length C strings from ELF NOTEs in D74883 <https://reviews.llvm.org/D74883>.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D74991

Files:
  llvm/include/llvm/Support/DataExtractor.h
  llvm/lib/Support/DataExtractor.cpp
  llvm/unittests/Support/DataExtractorTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74991.246010.patch
Type: text/x-patch
Size: 6259 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200221/b44a71e8/attachment.bin>


More information about the llvm-commits mailing list