mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 21:31:03 +00:00
Make error message more useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129209 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4d6deb099e
commit
cc513e1cf1
@ -293,7 +293,7 @@ loadSegment32(const MachOObject *Obj,
|
||||
if (!STE)
|
||||
return Error("unable to read symbol: '" + Twine(i) + "'");
|
||||
if (STE->SectionIndex > Segment32LC->NumSections)
|
||||
return Error("invalid section index for symbol: '" + Twine() + "'");
|
||||
return Error("invalid section index for symbol: '" + Twine(i) + "'");
|
||||
|
||||
// Just skip symbols not defined in this section.
|
||||
if ((unsigned)STE->SectionIndex - 1 != SectNum)
|
||||
@ -372,7 +372,7 @@ loadSegment64(const MachOObject *Obj,
|
||||
if (!STE)
|
||||
return Error("unable to read symbol: '" + Twine(i) + "'");
|
||||
if (STE->SectionIndex > Segment64LC->NumSections)
|
||||
return Error("invalid section index for symbol: '" + Twine() + "'");
|
||||
return Error("invalid section index for symbol: '" + Twine(i) + "'");
|
||||
|
||||
// Just skip symbols not defined in this section.
|
||||
if ((unsigned)STE->SectionIndex - 1 != SectNum)
|
||||
|
Loading…
x
Reference in New Issue
Block a user