[lld] r336670 - [ELF] - Add a test for readCallGraph() code.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 10 06:42:22 PDT 2018


Author: grimar
Date: Tue Jul 10 06:42:21 2018
New Revision: 336670

URL: http://llvm.org/viewvc/llvm-project?rev=336670&view=rev
Log:
[ELF] - Add a test for readCallGraph() code.

This is to test the following untested line:
https://github.com/llvm-mirror/lld/blob/master/ELF/Driver.cpp#L643

Modified:
    lld/trunk/test/ELF/cgprofile-warn.s

Modified: lld/trunk/test/ELF/cgprofile-warn.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/cgprofile-warn.s?rev=336670&r1=336669&r2=336670&view=diff
==============================================================================
--- lld/trunk/test/ELF/cgprofile-warn.s (original)
+++ lld/trunk/test/ELF/cgprofile-warn.s Tue Jul 10 06:42:21 2018
@@ -5,7 +5,8 @@
 # RUN: echo "A B 100" > %t.call_graph
 # RUN: echo "A C 40" >> %t.call_graph
 # RUN: echo "B C 30" >> %t.call_graph
-# RUN: echo "adena A 30" >> %t.call_graph
+# RUN: echo "adena1 A 30" >> %t.call_graph
+# RUN: echo "A adena2 30" >> %t.call_graph
 # RUN: echo "poppy A 30" >> %t.call_graph
 # RUN: ld.lld -e A %t --call-graph-ordering-file %t.call_graph -o /dev/null \
 # RUN:   -noinhibit-exec -icf=all 2>&1 | FileCheck %s
@@ -25,5 +26,6 @@ A:
     retq
 
 # CHECK: unable to order absolute symbol: B
-# CHECK: {{.*}}.call_graph: no such symbol: adena
+# CHECK: {{.*}}.call_graph: no such symbol: adena1
+# CHECK: {{.*}}.call_graph: no such symbol: adena2
 # CHECK: unable to order undefined symbol: poppy




More information about the llvm-commits mailing list