[PATCH] D17324: Add a test case in LLVM to ensure covmap section is not created allocatable
David Li via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 24 20:04:10 PST 2016
davidxl updated this revision to Diff 49005.
davidxl added a comment.
Minimize test case according to vsk's feedback.
http://reviews.llvm.org/D17324
Files:
test/Instrumentation/InstrProfiling/X86/alloc.ll
test/Instrumentation/InstrProfiling/X86/lit.local.cfg
Index: test/Instrumentation/InstrProfiling/X86/lit.local.cfg
===================================================================
--- test/Instrumentation/InstrProfiling/X86/lit.local.cfg
+++ test/Instrumentation/InstrProfiling/X86/lit.local.cfg
@@ -0,0 +1,3 @@
+if not 'X86' in config.root.targets:
+ config.unsupported = True
+
Index: test/Instrumentation/InstrProfiling/X86/alloc.ll
===================================================================
--- test/Instrumentation/InstrProfiling/X86/alloc.ll
+++ test/Instrumentation/InstrProfiling/X86/alloc.ll
@@ -0,0 +1,7 @@
+;; Ensure that SHF_ALLOC section flag is not set for the __llvm_covmap section on Linux.
+; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
+
+ at __profn_foo = private constant [3 x i8] c"foo"
+ at __llvm_coverage_mapping = internal constant i32 0, section "__llvm_covmap"
+
+; CHECK-DAG: .section __llvm_covmap,""
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17324.49005.patch
Type: text/x-patch
Size: 904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160225/98ac128a/attachment.bin>
More information about the llvm-commits
mailing list