summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Relocations.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2018-01-03 22:44:58 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2018-01-03 22:44:58 +0000
commit7c99c1472267e4dfb2edad46555022d98dcd185c (patch)
treeaf1ddc935b29a52172d37d0604dff76aa1b8e10d /lld/ELF/Relocations.cpp
parentec0a2fb7037aab3eca8eacdfe85692d3c140a40f (diff)
downloadbcm5719-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.cpp4
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;
}
OpenPOWER on IntegriCloud