diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-03 22:44:58 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2018-01-03 22:44:58 +0000 |
commit | 7c99c1472267e4dfb2edad46555022d98dcd185c (patch) | |
tree | af1ddc935b29a52172d37d0604dff76aa1b8e10d /lld/ELF/Relocations.cpp | |
parent | ec0a2fb7037aab3eca8eacdfe85692d3c140a40f (diff) | |
download | bcm5719-llvm-7c99c1472267e4dfb2edad46555022d98dcd185c.tar.gz bcm5719-llvm-7c99c1472267e4dfb2edad46555022d98dcd185c.zip |
Use getLocation to improve error message.
llvm-svn: 321768
Diffstat (limited to 'lld/ELF/Relocations.cpp')
-rw-r--r-- | lld/ELF/Relocations.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lld/ELF/Relocations.cpp b/lld/ELF/Relocations.cpp index 15403c9c442..4fcec81bce6 100644 --- a/lld/ELF/Relocations.cpp +++ b/lld/ELF/Relocations.cpp @@ -640,8 +640,8 @@ static RelExpr adjustExpr(Symbol &Sym, RelExpr Expr, RelType Type, if (Sym.isFunc()) return getPltExpr(Sym, Expr, IsConstant); - errorOrWarn("symbol '" + toString(Sym) + "' defined in " + - toString(Sym.File) + " has no type"); + errorOrWarn("symbol '" + toString(Sym) + "' has no type" + + getLocation(S, Sym, RelOff)); return Expr; } |