[llvm] r223244 - Fix test to use the right metadata node (reapply r223239 plus a fix) and also to use the correct path to the GCNO file.

Nick Lewycky nicholas at mxc.ca
Wed Dec 3 09:32:44 PST 2014


Author: nicholas
Date: Wed Dec  3 11:32:44 2014
New Revision: 223244

URL: http://llvm.org/viewvc/llvm-project?rev=223244&view=rev
Log:
Fix test to use the right metadata node (reapply r223239 plus a fix) and also to use the correct path to the GCNO file.

Modified:
    llvm/trunk/test/Transforms/GCOVProfiling/return-block.ll

Modified: llvm/trunk/test/Transforms/GCOVProfiling/return-block.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Transforms/GCOVProfiling/return-block.ll?rev=223244&r1=223243&r2=223244&view=diff
==============================================================================
--- llvm/trunk/test/Transforms/GCOVProfiling/return-block.ll (original)
+++ llvm/trunk/test/Transforms/GCOVProfiling/return-block.ll Wed Dec  3 11:32:44 2014
@@ -2,7 +2,7 @@
 ; RUN: echo '!19 = metadata !{metadata !"%/T/return-block.ll", metadata !0}' > %t1
 ; RUN: cat %s %t1 > %t2
 ; RUN: opt -insert-gcov-profiling -disable-output %t2
-; RUN: llvm-cov gcov -n -dump return-block.gcno 2>&1 | FileCheck %s
+; RUN: llvm-cov gcov -n -dump %T/return-block.gcno 2>&1 | FileCheck %s
 
 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
 target triple = "x86_64-unknown-linux-gnu"
@@ -33,7 +33,7 @@ attributes #0 = { nounwind uwtable "less
 attributes #1 = { "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
 attributes #2 = { nounwind }
 
-!llvm.gcov = !{!14}
+!llvm.gcov = !{!19}
 !llvm.dbg.cu = !{!0}
 !llvm.module.flags = !{!11, !12}
 !llvm.ident = !{!13}





More information about the llvm-commits mailing list