[PATCH] D60322: [LLVM-C] Begin to Expose A More General Binary Interface

Robert Widmann via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 5 08:48:33 PDT 2019


CodaFi created this revision.
CodaFi added reviewers: deadalnix, whitequark.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Provides a new type, `LLVMBinaryRef`, and a binding to `llvm::object::createBinary` for more general interoperation with binary files than `LLVMObjectFileRef`.  It also provides the proper non-consuming API for input buffers and populates an out parameter for error handling if necessary - two things the previous API did not do.

In a follow-up, I'll define section and symbol iterators and begin to build upon the existing test infrastructure.

This patch is a first step towards deprecating that API and replacing it with something more robust.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60322

Files:
  llvm/include/llvm-c/Object.h
  llvm/include/llvm-c/Types.h
  llvm/include/llvm/Object/Binary.h
  llvm/lib/Object/Object.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60322.193890.patch
Type: text/x-patch
Size: 4188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190405/d30117ef/attachment.bin>


More information about the llvm-commits mailing list