Skip to content

Commit 88242f2

Browse files
Cleanup
1 parent da0e55e commit 88242f2

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lldb/source/Plugins/ObjectFile/XCOFF/ObjectFileXCOFF.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,6 @@ bool ObjectFileXCOFF::MagicBytesMatch(DataBufferSP &data_sp,
127127
lldb::addr_t data_length) {
128128
lldb_private::DataExtractor data;
129129
data.SetData(data_sp, data_offset, data_length);
130-
// Need to set this as XCOFF is only compatible with Big Endian
131130
data.SetByteOrder(eByteOrderBig);
132131
lldb::offset_t offset = 0;
133132
uint16_t magic = data.GetU16(&offset);
@@ -140,10 +139,7 @@ ByteOrder ObjectFileXCOFF::GetByteOrder() const { return eByteOrderBig; }
140139

141140
bool ObjectFileXCOFF::IsExecutable() const { return true; }
142141

143-
uint32_t ObjectFileXCOFF::GetAddressByteSize() const {
144-
// 32-bit not supported. return 8 for 64-bit XCOFF::XCOFF64
145-
return 8;
146-
}
142+
uint32_t ObjectFileXCOFF::GetAddressByteSize() const { return 8; }
147143

148144
void ObjectFileXCOFF::ParseSymtab(Symtab &lldb_symtab) {}
149145

0 commit comments

Comments
 (0)