From: Benjamin Kramer Date: Sat, 9 Apr 2011 10:10:35 +0000 (+0000) Subject: Make error message more useful. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=cc513e1cf19bbdab83c5336455196e0e91d57f32;p=oota-llvm.git Make error message more useful. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129209 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 3c3030731e0..5084b9664d1 100644 --- a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp @@ -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)