summaryrefslogtreecommitdiff
path: root/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-04-09 10:10:35 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-04-09 10:10:35 +0000
commitcc513e1cf19bbdab83c5336455196e0e91d57f32 (patch)
tree1bbc64011b87744c6508c4792c95086709b17af9 /lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
parent4d6deb099ee63f2b19f3abbe11e8e3c106fd8493 (diff)
downloadllvm-cc513e1cf19bbdab83c5336455196e0e91d57f32.tar.gz
llvm-cc513e1cf19bbdab83c5336455196e0e91d57f32.tar.bz2
llvm-cc513e1cf19bbdab83c5336455196e0e91d57f32.tar.xz
Make error message more useful.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129209 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp')
-rw-r--r--lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp b/lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp
index 3c3030731e..5084b9664d 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)