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"
41 void ObjectFile::anchor() {}
43 ObjectFile::ObjectFile(unsigned int Type, MemoryBufferRef Source)
56 Expected<uint64_t> ObjectFile::getSymbolValue(DataRefImpl Ref) const {
69 Error ObjectFile::printSymbolName(raw_ostream &OS, DataRefImpl Symb) const {
77 uint32_t ObjectFile::getSymbolAlignment(DataRefImpl DRI) const { return 0; }
79 bool ObjectFile::isSectionBitcode(DataRefImpl Sec) const {
87 bool ObjectFile::isSectionStripped(DataRefImpl Sec) const { return false; }
89 bool ObjectFile::isBerkeleyText(DataRefImpl Sec) const {
93 bool ObjectFile::isBerkeleyData(DataRefImpl Sec) const {
97 bool ObjectFile::isDebugSection(DataRefImpl Sec) const { return false; }
99 bool ObjectFile::hasDebugInfo() const {
105 ObjectFile::getRelocatedSection(DataRefImpl Sec) const {
109 Triple ObjectFile::makeTriple() const {
148 Expected<std::unique_ptr<ObjectFile>>
149 ObjectFile::createObjectFile(MemoryBufferRef Object, file_magic Type,
208 Expected<OwningBinary<ObjectFile>>
209 ObjectFile::createObjectFile(StringRef ObjectPath) {
216 Expected<std::unique_ptr<ObjectFile>> ObjOrErr =
220 std::unique_ptr<ObjectFile> Obj = std::move(ObjOrErr.get());
222 return OwningBinary<ObjectFile>(std::move(Obj), std::move(Buffer));
225 bool ObjectFile::isReflectionSectionStrippable(