2018-03-01 03:00:08 +08:00
|
|
|
;; Emit the runtime hook even if there are no counter increments.
|
2014-12-09 02:02:35 +08:00
|
|
|
|
2018-03-01 03:00:08 +08:00
|
|
|
; RUN: opt < %s -mtriple=x86_64-apple-macosx10.10.0 -instrprof -S | FileCheck %s -check-prefixes=ALL,DARWIN
|
|
|
|
; RUN: opt < %s -mtriple=x86_64-apple-macosx10.10.0 -passes=instrprof -S | FileCheck %s -check-prefixes=ALL,DARWIN
|
|
|
|
; RUN: opt < %s -mtriple=x86_64-linux-unknown -passes=instrprof -S | FileCheck %s -check-prefixes=ALL,LINUX
|
|
|
|
; ALL-NOT: @__profc
|
|
|
|
; ALL-NOT: @__profd
|
|
|
|
; DARWIN: @__llvm_profile_runtime
|
|
|
|
; LINUX-NOT: @__llvm_profile_runtime
|
2014-12-09 02:02:35 +08:00
|
|
|
|
|
|
|
define void @foo() {
|
|
|
|
ret void
|
|
|
|
}
|