summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2018-07-10 10:16:48 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2018-07-10 10:16:48 +0000
commit20b92c4d0d5f6371592f613063eca4cd96a8cc29 (patch)
tree2f849a9ccb5bab3521cffa1235e6358291a20ffc
parentc048599f224ed17fe0371614d9bcf1c8676496ec (diff)
downloadbcm5719-llvm-20b92c4d0d5f6371592f613063eca4cd96a8cc29.tar.gz
bcm5719-llvm-20b92c4d0d5f6371592f613063eca4cd96a8cc29.zip
[ELF] - Report call graph profile file names in error messages.
We did not report file names for some reason. llvm-svn: 336650
-rw-r--r--lld/ELF/Driver.cpp4
-rw-r--r--lld/test/ELF/cgprofile-warn.s2
2 files changed, 3 insertions, 3 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index 386c63a3134..645c78f2f23 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -640,9 +640,9 @@ static void readCallGraph(MemoryBufferRef MB) {
const Symbol *ToSym = SymbolNameToSymbol.lookup(Fields[1]);
if (Config->WarnSymbolOrdering) {
if (!FromSym)
- warn("call graph file: no such symbol: " + Fields[0]);
+ warn(MB.getBufferIdentifier() + ": no such symbol: " + Fields[0]);
if (!ToSym)
- warn("call graph file: no such symbol: " + Fields[1]);
+ warn(MB.getBufferIdentifier() + ": no such symbol: " + Fields[1]);
}
if (!FromSym || !ToSym || Count == 0)
continue;
diff --git a/lld/test/ELF/cgprofile-warn.s b/lld/test/ELF/cgprofile-warn.s
index 471dc180397..d6c6462a94e 100644
--- a/lld/test/ELF/cgprofile-warn.s
+++ b/lld/test/ELF/cgprofile-warn.s
@@ -25,5 +25,5 @@ A:
retq
# CHECK: unable to order absolute symbol: B
-# CHECK: call graph file: no such symbol: adena
+# CHECK: {{.*}}.call_graph: no such symbol: adena
# CHECK: unable to order undefined symbol: poppy
OpenPOWER on IntegriCloud