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 + +@__profn_foo = private constant [3 x i8] c"foo" +@__llvm_coverage_mapping = internal constant i32 0, section "__llvm_covmap" + +; CHECK-DAG: .section __llvm_covmap,"" 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 +