mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 06:29:42 +02:00
* use a case statement, instead of 'if', based on the OMF record type in
TOmfObjInput.ReadLEDataAndFixups. This is to allow (in the future) handling of LIDATA records and FIXUPP records without preceding LEDATA/LIDATA. No functional changes in this commit. git-svn-id: trunk@39166 -
This commit is contained in:
parent
43d7b23555
commit
002b116322
@ -1498,8 +1498,9 @@ implementation
|
||||
Thread: TOmfSubRecord_THREAD;
|
||||
begin
|
||||
Result:=False;
|
||||
if not (RawRec.RecordType in [RT_LEDATA,RT_LEDATA32]) then
|
||||
internalerror(2015040301);
|
||||
case RawRec.RecordType of
|
||||
RT_LEDATA,RT_LEDATA32:
|
||||
begin
|
||||
Is32Bit:=RawRec.RecordType=RT_LEDATA32;
|
||||
NextOfs:=RawRec.ReadIndexedRef(0,SegmentIndex);
|
||||
if Is32Bit then
|
||||
@ -1549,6 +1550,10 @@ implementation
|
||||
end;
|
||||
objsec.Data.seek(EnumeratedDataOffset);
|
||||
objsec.Data.write(RawRec.RawData[NextOfs],BlockLength);
|
||||
end;
|
||||
else
|
||||
internalerror(2015040301);
|
||||
end;
|
||||
|
||||
{ also read all the FIXUPP records that may follow }
|
||||
while PeekNextRecordType in [RT_FIXUPP,RT_FIXUPP32] do
|
||||
|
Loading…
Reference in New Issue
Block a user