]> granicus.if.org Git - llvm/commit
[LLVM-C] Begin to Expose A More General Binary Interface
authorRobert Widmann <devteam.codafi@gmail.com>
Fri, 5 Apr 2019 21:36:50 +0000 (21:36 +0000)
committerRobert Widmann <devteam.codafi@gmail.com>
Fri, 5 Apr 2019 21:36:50 +0000 (21:36 +0000)
commit49009c9f67c816431d95dc134bffcf999f6361e5
tree9b10dac39fd7b20f7d13cba4babd13d1335fdbbd
parenta47974f1b975d7048da7863d06a33c9ed3467ffb
[LLVM-C] Begin to Expose A More General Binary Interface

Summary:
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.

Reviewers: deadalnix, whitequark

Reviewed By: whitequark

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D60322

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@357822 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm-c/Object.h
include/llvm-c/Types.h
include/llvm/Object/Binary.h
lib/Object/Object.cpp