Skip to content

Commit 23682e9

Browse files
committed
[PGO] Add test case to ensure covmap section is not allocatable.
Differential Revision: http://reviews.llvm.org/D17324 llvm-svn: 261959
1 parent 9f520eb commit 23682e9

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
;; Ensure that SHF_ALLOC section flag is not set for the __llvm_covmap section on Linux.
2+
; RUN: llc < %s -mtriple=x86_64-unknown-linux-gnu | FileCheck %s
3+
4+
@__llvm_coverage_mapping = internal constant i32 0, section "__llvm_covmap"
5+
6+
; CHECK-DAG: .section __llvm_covmap,""
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
if not 'X86' in config.root.targets:
2+
config.unsupported = True
3+

0 commit comments

Comments
 (0)