; RUN: opt < %s -mtriple=x86_64-apple-macosx -pgo-instr-gen -instrprof -S | llc | FileCheck %s --check-prefix=MACHO-DIRECTIVE

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"

; MACHO-DIRECTIVE: .weak_definition        ___llvm_profile_raw_version
define i32 @test_macho(i32 %i) {
entry:
  ret i32 %i
}

; RUN: opt < %s -pgo-instr-gen -instrprof -S | llc | FileCheck %s --check-prefix=MACHO-DIRECTIVE

target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-apple-macosx10.11.0"

; MACHO-DIRECTIVE: .weak_definition        ___llvm_profile_raw_version
define i32 @test_macho(i32 %i) {
entry:
  ret i32 %i
}

Fix buildbot failure from r268968.
Fix buildbot failure from r268968.


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@268984 91177308-0d34-0410-b5e6-96231b3b80d8
