[PATCH] D60810: [Support] Add LEB128 support to BinaryStreamReader/Writer.

Lang Hames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 21:30:30 PDT 2019


lhames created this revision.
lhames added reviewers: zturner, dblaikie.
Herald added a subscriber: kristina.
Herald added a project: LLVM.

This patch adds support for ULEB128 and SLEB128 encoding and decoding to
BinaryStreamWriter and BinaryStreamReader respectively.

Support for ULEB128/SLEB128 will be used for eh-frame parsing in the JITLink
library currently under development (see https://reviews.llvm.org/D58704).


Repository:
  rL LLVM

https://reviews.llvm.org/D60810

Files:
  include/llvm/Support/BinaryStreamReader.h
  include/llvm/Support/BinaryStreamWriter.h
  lib/Support/BinaryStreamReader.cpp
  lib/Support/BinaryStreamWriter.cpp
  unittests/Support/BinaryStreamTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60810.195509.patch
Type: text/x-patch
Size: 7360 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190417/dd7e52f5/attachment.bin>


More information about the llvm-commits mailing list