[lld] r336650 - [ELF] - Report call graph profile file names in error messages.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 10 03:16:49 PDT 2018
Author: grimar
Date: Tue Jul 10 03:16:48 2018
New Revision: 336650
URL: http://llvm.org/viewvc/llvm-project?rev=336650&view=rev
Log:
[ELF] - Report call graph profile file names in error messages.
We did not report file names for some reason.
Modified:
lld/trunk/ELF/Driver.cpp
lld/trunk/test/ELF/cgprofile-warn.s
Modified: lld/trunk/ELF/Driver.cpp
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Driver.cpp?rev=336650&r1=336649&r2=336650&view=diff
==============================================================================
--- lld/trunk/ELF/Driver.cpp (original)
+++ lld/trunk/ELF/Driver.cpp Tue Jul 10 03:16:48 2018
@@ -640,9 +640,9 @@ static void readCallGraph(MemoryBufferRe
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;
Modified: lld/trunk/test/ELF/cgprofile-warn.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/cgprofile-warn.s?rev=336650&r1=336649&r2=336650&view=diff
==============================================================================
--- lld/trunk/test/ELF/cgprofile-warn.s (original)
+++ lld/trunk/test/ELF/cgprofile-warn.s Tue Jul 10 03:16:48 2018
@@ -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
More information about the llvm-commits
mailing list