diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-04-09 10:10:35 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-04-09 10:10:35 +0000 |
commit | 2792f2b86b8aca24b2aae8a782971ef0dc461e45 (patch) | |
tree | f8b35e837bc841435c66ec0ae4a950da9175bba9 /llvm/lib/ExecutionEngine | |
parent | 6bd36d56e4a6b9987eb7f9877b56f65867599892 (diff) | |
download | bcm5719-llvm-2792f2b86b8aca24b2aae8a782971ef0dc461e45.tar.gz bcm5719-llvm-2792f2b86b8aca24b2aae8a782971ef0dc461e45.zip |
Make error message more useful.
llvm-svn: 129209
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r-- | llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp index 3c3030731e0..5084b9664d1 100644 --- a/llvm/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp +++ b/llvm/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) |