mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 21:24:00 +00:00
Revert the last two commits in the series. r132911, r132912.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132913 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -32,8 +32,8 @@ typedef MachOObject::LoadCommandInfo LoadCommandInfo;
|
||||
|
||||
class MachOObjectFile : public ObjectFile {
|
||||
public:
|
||||
MachOObjectFile(MemoryBuffer *Object, MachOObject *MOO, error_code &ec)
|
||||
: ObjectFile(Binary::isMachO, Object, ec),
|
||||
MachOObjectFile(MemoryBuffer *Object, MachOObject *MOO)
|
||||
: ObjectFile(Object),
|
||||
MachOObj(MOO),
|
||||
RegisteredStringTable(std::numeric_limits<uint32_t>::max()) {}
|
||||
|
||||
@ -73,12 +73,11 @@ private:
|
||||
};
|
||||
|
||||
ObjectFile *ObjectFile::createMachOObjectFile(MemoryBuffer *Buffer) {
|
||||
error_code ec;
|
||||
std::string Err;
|
||||
MachOObject *MachOObj = MachOObject::LoadFromBuffer(Buffer, &Err);
|
||||
if (!MachOObj)
|
||||
return NULL;
|
||||
return new MachOObjectFile(Buffer, MachOObj, ec);
|
||||
return new MachOObjectFile(Buffer, MachOObj);
|
||||
}
|
||||
|
||||
/*===-- Symbols -----------------------------------------------------------===*/
|
||||
|
Reference in New Issue
Block a user