//===- Object.cpp - C bindings to the object file library--------*- C++ -*-===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// This file defines the C bindings to the file-format-independent object
// library.
//
//===----------------------------------------------------------------------===//
using namespace llvm;
using namespace object;
inline OwningBinary<ObjectFile> *
inline LLVMObjectFileRef
inline section_iterator *
inline LLVMSectionIteratorRef
inline symbol_iterator *
inline LLVMSymbolIteratorRef
inline relocation_iterator *
inline LLVMRelocationIteratorRef
/*--.. Operations on binary files ..........................................--*/
LLVMBinaryRef
LLVMMemoryBufferRef
void
LLVMBinaryType
LLVMBinaryRef
LLVMSectionIteratorRef
LLVMBool
LLVMSymbolIteratorRef
LLVMBool
// ObjectFile creation
LLVMObjectFileRef
void
// ObjectFile Section iterators
LLVMSectionIteratorRef
void
LLVMBool
void
void
// ObjectFile Symbol iterators
LLVMSymbolIteratorRef
void
LLVMBool
void
// SectionRef accessors
const char *
uint64_t
const char *
uint64_t
LLVMBool
// Section Relocation iterators
LLVMRelocationIteratorRef
void
LLVMBool
void
// SymbolRef accessors
const char *
uint64_t
uint64_t
// RelocationRef accessors
uint64_t
LLVMSymbolIteratorRef
uint64_t
// NOTE: Caller takes ownership of returned string.
const char *
// NOTE: Caller takes ownership of returned string.
const char *