[PGO] Add test case to ensure covmap section is not allocatable.

Differential Revision: http://reviews.llvm.org/D17324

llvm-svn: 261959
This commit is contained in:
Xinliang David Li 2016-02-26 03:05:10 +00:00
parent 4826fdb5cd
commit 04309d54d1
2 changed files with 9 additions and 0 deletions

View File

@ -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
@__llvm_coverage_mapping = internal constant i32 0, section "__llvm_covmap"
; CHECK-DAG: .section __llvm_covmap,""

View File

@ -0,0 +1,3 @@
if not 'X86' in config.root.targets:
config.unsupported = True