[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
Thu Feb 25 19:09:45 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL261959: [PGO] Add test case to ensure covmap section is not allocatable. (authored by davidxl).

Changed prior to commit:
  http://reviews.llvm.org/D17324?vs=49005&id=49144#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D17324

Files:
  llvm/trunk/test/Instrumentation/InstrProfiling/X86/alloc.ll
  llvm/trunk/test/Instrumentation/InstrProfiling/X86/lit.local.cfg

Index: llvm/trunk/test/Instrumentation/InstrProfiling/X86/alloc.ll
===================================================================
--- llvm/trunk/test/Instrumentation/InstrProfiling/X86/alloc.ll
+++ llvm/trunk/test/Instrumentation/InstrProfiling/X86/alloc.ll
@@ -0,0 +1,6 @@
+;; 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 __llvm_coverage_mapping = internal constant i32 0, section "__llvm_covmap"
+
+; CHECK-DAG: .section	__llvm_covmap,""
Index: llvm/trunk/test/Instrumentation/InstrProfiling/X86/lit.local.cfg
===================================================================
--- llvm/trunk/test/Instrumentation/InstrProfiling/X86/lit.local.cfg
+++ llvm/trunk/test/Instrumentation/InstrProfiling/X86/lit.local.cfg
@@ -0,0 +1,3 @@
+if not 'X86' in config.root.targets:
+    config.unsupported = True
+


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17324.49144.patch
Type: text/x-patch
Size: 921 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160226/a667b7b3/attachment.bin>


More information about the llvm-commits mailing list