forked from OSchip/llvm-project
parent
5ffc079c8a
commit
717c4d44c4
|
@ -2189,8 +2189,7 @@ ELFObjectFile<ELFT>::ELFObjectFile(MemoryBuffer *Object, error_code &ec)
|
|||
: ObjectFile(getELFType(
|
||||
static_cast<endianness>(ELFT::TargetEndianness) == support::little,
|
||||
ELFT::Is64Bits),
|
||||
Object,
|
||||
ec)
|
||||
Object)
|
||||
, isDyldELFObject(false)
|
||||
, SectionHeaderTable(0)
|
||||
, dot_shstrtab_sec(0)
|
||||
|
|
|
@ -276,7 +276,7 @@ class ObjectFile : public Binary {
|
|||
ObjectFile(const ObjectFile &other) LLVM_DELETED_FUNCTION;
|
||||
|
||||
protected:
|
||||
ObjectFile(unsigned int Type, MemoryBuffer *source, error_code &ec);
|
||||
ObjectFile(unsigned int Type, MemoryBuffer *source);
|
||||
|
||||
const uint8_t *base() const {
|
||||
return reinterpret_cast<const uint8_t *>(Data->getBufferStart());
|
||||
|
|
|
@ -429,7 +429,7 @@ relocation_iterator COFFObjectFile::getSectionRelEnd(DataRefImpl Sec) const {
|
|||
}
|
||||
|
||||
COFFObjectFile::COFFObjectFile(MemoryBuffer *Object, error_code &ec)
|
||||
: ObjectFile(Binary::ID_COFF, Object, ec)
|
||||
: ObjectFile(Binary::ID_COFF, Object)
|
||||
, Header(0)
|
||||
, SectionTable(0)
|
||||
, SymbolTable(0)
|
||||
|
|
|
@ -29,7 +29,7 @@ namespace object {
|
|||
|
||||
MachOObjectFile::MachOObjectFile(MemoryBuffer *Object, MachOObject *MOO,
|
||||
error_code &ec)
|
||||
: ObjectFile(Binary::ID_MachO, Object, ec),
|
||||
: ObjectFile(Binary::ID_MachO, Object),
|
||||
MachOObj(MOO) {
|
||||
DataRefImpl DRI;
|
||||
moveToNextSection(DRI);
|
||||
|
|
|
@ -23,7 +23,7 @@ using namespace object;
|
|||
|
||||
void ObjectFile::anchor() { }
|
||||
|
||||
ObjectFile::ObjectFile(unsigned int Type, MemoryBuffer *source, error_code &ec)
|
||||
ObjectFile::ObjectFile(unsigned int Type, MemoryBuffer *source)
|
||||
: Binary(Type, source) {
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue