Lines Matching refs:ObjectFile
1 //===- ObjectFile.cpp - File format independent object file ---------------===//
9 // This file defines a file format independent ObjectFile class.
13 #include "llvm/Object/ObjectFile.h"
42 void ObjectFile::anchor() {}
44 ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source)
57 uint64_t ObjectFile::getSymbolValue(DataRefImpl Ref) const {
66 Error ObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const {
74 uint32_t ObjectFile::getSymbolAlignment(DataRefImpl DRI) const { return 0; }
76 bool ObjectFile::isSectionBitcode(DataRefImpl Sec) const {
84 bool ObjectFile::isSectionStripped(DataRefImpl Sec) const { return false; }
86 bool ObjectFile::isBerkeleyText(DataRefImpl Sec) const {
90 bool ObjectFile::isBerkeleyData(DataRefImpl Sec) const {
95 ObjectFile::getRelocatedSection(DataRefImpl Sec) const {
99 Triple ObjectFile::makeTriple() const {
124 Expected<std::unique_ptr<ObjectFile>>
125 ObjectFile::createObjectFile(MemoryBufferRef Object, file_magic Type) {
174 Expected<OwningBinary<ObjectFile>>
175 ObjectFile::createObjectFile(StringRef ObjectPath) {
182 Expected<std::unique_ptr<ObjectFile>> ObjOrErr =
186 std::unique_ptr<ObjectFile> Obj = std::move(ObjOrErr.get());
188 return OwningBinary<ObjectFile>(std::move(Obj), std::move(Buffer));