Lines Matching +full:- +full:- +full:binary
1 //===- Binary.cpp - A generic binary file -----------------------*- C++ -*-===//
8 //===----------------------------------------------------------------------===//
10 // This file defines the Binary class.
12 //===----------------------------------------------------------------------===//
14 #include "llvm/Object/Binary.h"
28 Binary::~Binary() {} in ~Binary()
30 Binary::Binary(unsigned int Type, MemoryBufferRef Source) in Binary() function in Binary
33 StringRef Binary::getData() const { return Data.getBuffer(); } in getData()
35 StringRef Binary::getFileName() const { return Data.getBufferIdentifier(); } in getFileName()
37 MemoryBufferRef Binary::getMemoryBufferRef() const { return Data; } in getMemoryBufferRef()
39 Expected<std::unique_ptr<Binary>> object::createBinary(MemoryBufferRef Buffer, in createBinary()
74 llvm_unreachable("Unexpected Binary File Type"); in createBinary()
77 Expected<OwningBinary<Binary>> object::createBinary(StringRef Path) { in createBinary()
84 Expected<std::unique_ptr<Binary>> BinOrErr = in createBinary()
85 createBinary(Buffer->getMemBufferRef()); in createBinary()
88 std::unique_ptr<Binary> &Bin = BinOrErr.get(); in createBinary()
90 return OwningBinary<Binary>(std::move(Bin), std::move(Buffer)); in createBinary()